evanboyle
fa47d867fd
fix go sdk makefile to run tests
2020-03-19 14:10:48 -07:00
evanboyle
a2b368827f
fix internal logging usage
2020-03-19 11:45:10 -07:00
evanboyle
31d8f79f35
fix klog initialization
2020-03-19 10:01:10 -07:00
evanboyle
4e44854308
replace glog with klog
2020-03-19 08:56:44 -07:00
evanboyle
ec686bbaf6
Merge branch 'master' of https://github.com/pulumi/pulumi into evan/gomod
2020-03-18 17:57:58 -07:00
evanboyle
29dfd65632
fix resource test data path
2020-03-18 17:36:28 -07:00
evanboyle
bc4e5bf31c
run common tests as a part of go sdk make
2020-03-18 17:32:27 -07:00
evanboyle
d3f5bbce48
go fmt
2020-03-18 17:27:02 -07:00
evanboyle
67f6b72caa
Revert "move sdk/go/pulumi-language-go -> pkg/cmd/pulumi-language-go"
...
This reverts commit 7ea547a14d
.
2020-03-18 17:14:41 -07:00
evanboyle
6933745342
move pkg/tools -> sdk/go/common/tools
2020-03-18 15:56:58 -07:00
evanboyle
a4ec3ec81b
move pkg/testing -> sdk/go/common/testing, leave behind pkg/testing/integration
2020-03-18 15:55:41 -07:00
evanboyle
0e9c5989bb
move pkg/util/gitutil -> sdk/go/common/util/gitutil
2020-03-18 15:52:09 -07:00
evanboyle
df722e974a
move pkg/util/archive -> sdk/go/common/util/archive
2020-03-18 15:50:04 -07:00
evanboyle
30e1a5917e
move pkg/util/fsutil -> sdk/go/common/util/fsutil
2020-03-18 15:48:38 -07:00
evanboyle
33e23bdf0c
move pkg/util/retry -> sdk/go/common/util/retry
2020-03-18 15:47:01 -07:00
evanboyle
c1440e48d4
move pkg/util/result -> sdk/go/common/util
2020-03-18 15:45:42 -07:00
evanboyle
fa348ceb1b
move pkg/util/ciutil -> sdk/go/common/util/ciutil
2020-03-18 15:43:31 -07:00
evanboyle
c1d3a8524b
move pkg/util/cmdutil -> sdk/go/common/util/cmdutil
2020-03-18 15:39:00 -07:00
evanboyle
7ff46cb4fa
move pkg/util/rpcutil -> sdk/go/common/util/rpcutil
2020-03-18 15:37:13 -07:00
evanboyle
c3f6ae2451
move pkg/util/logging -> sdk/go/common/util/logging
2020-03-18 15:34:58 -07:00
evanboyle
cdfb8608c9
move pkg/encoding -> sdk/go/common/encoding
2020-03-18 15:28:19 -07:00
evanboyle
30df499838
move pkg/version -> sdk/go/common/version
2020-03-18 15:25:25 -07:00
evanboyle
8df534a71e
move pkg/diag -> sdk/go/common/diag
2020-03-18 15:09:29 -07:00
evanboyle
f754b486b8
move pkg/resource/config -> sdk/go/common/resource/config
2020-03-18 15:03:37 -07:00
evanboyle
67cb405c93
move pkg/apitype -> sdk/common/apitype
2020-03-18 15:00:30 -07:00
evanboyle
70f386a967
move pkg/tokens -> sdk/go/common/tokens
2020-03-18 14:49:56 -07:00
evanboyle
4fe4d48ec5
move pkg/util/mapper -> sdk/go/common/util/mapper
2020-03-18 14:47:37 -07:00
evanboyle
8a87090068
move pkg/util/httputil -> sdk/go/common/util/httputil
2020-03-18 14:45:00 -07:00
evanboyle
fccf301d14
move pkg/util/contract -> sdk/go/common/util/contract
2020-03-18 14:40:07 -07:00
evanboyle
8fb3f428b0
move pkg/workspace -> sdk/go/common/workspace
2020-03-18 14:35:53 -07:00
evanboyle
dfab571aac
move pkg/resource/plugin -> sdk/go/common/resource/plugin
2020-03-18 14:26:24 -07:00
evanboyle
fba783caf9
move pkg/resource -> sdk/go/common/resource, but leave nested resource packages
2020-03-18 13:36:19 -07:00
evanboyle
7ea547a14d
move sdk/go/pulumi-language-go -> pkg/cmd/pulumi-language-go
2020-03-18 12:49:56 -07:00
Evan Boyle
8b46e71887
Go plugin acquisition ( #4060 )
...
These changes implement `GetRequiredPlugins` for Go using a registry
mechanism and an alternate entry point for `pulumi.Run`. Packages that
require plugins are expected to register themselves with the Pulumi SDK.
When `pulumi.Run` is used and the `PULUMI_PLUGINS` envvar is truthy, the
program will dump a JSON-encoded description of its required plugins to
stdout. The language host then uses this description to respond to
2020-03-18 12:41:45 -07:00
Levi Blackstone
ee62f38ab9
Add ArrayMap builtin types to Go SDK ( #4086 )
...
Add support for maps of arrays of builtin types.
These types are of the form map[string][]builtin.
2020-03-16 20:41:08 -06:00
Levi Blackstone
ad1c884aad
Fix lint issue ( #4088 )
...
Linter was complaining about possibly nil dereferences,
but these are already checked with an assertion.
2020-03-16 16:45:02 -06:00
Tasia Halim
b6e5d2737d
Update Go logging to use LogArgs ( #4078 )
2020-03-13 13:30:05 -07:00
Tasia Halim
ef6f0d4de4
Expose engine logging to Go SDK ( #4069 )
...
* expose engine logging to Go SDK
* added comments
2020-03-12 16:00:59 -07:00
Paul Stack
2a24470135
Merge pull request #4030 from pulumi/stack72/allow-go-run-windows
...
Windows requires applications to have exe extension
2020-03-09 17:36:10 +02:00
Evan Boyle
81b6afa3c7
Revert "GetRequiredPlugins for Go ( #3830 )" ( #4034 )
...
This reverts commit 3a2890c0cd
.
2020-03-06 17:50:18 -08:00
Pat Gavlin
3a2890c0cd
GetRequiredPlugins for Go ( #3830 )
...
These changes implement `GetRequiredPlugins` for Go using a registry
mechanism and an alternate entry point for `pulumi.Run`. Packages that
require plugins are expected to register themselves with the Pulumi SDK.
When `pulumi.Run` is used and the `PULUMI_PLUGINS` envvar is truthy, the
program will dump a JSON-encoded description of its required plugins to
stdout. The language host then uses this description to respond to
`GetRequiredPlugins`.
2020-03-06 14:30:43 -08:00
Evan Boyle
e75dca1207
fix reflect panic ( #4027 )
2020-03-06 11:01:21 -08:00
stack72
7f86842c68
Windows requires applications to have exe extension
...
We need to ensure that if the pulumi application is prebuild on
Windows then it will have the exe extension otherwise it's not
a valid windows program
https://github.com/golang/go/wiki/WindowsCrossCompiling
2020-03-06 19:58:57 +02:00
Evan Boyle
3b8ffd5731
Go SDK fix panic when dest is struct and input is ptr ( #3986 )
2020-03-03 09:07:06 -08:00
Tasia Halim
c96271b7a3
Support transformations in Go ( #3978 )
...
* started transformations for go sdk
* added first basic test
* added second test with child
* added RegisterStackTransformation
* added a couple tests to lifecycle_test
* update CHANGELOG and test
* included TODO for #3846
2020-03-02 13:59:11 -08:00
Evan Boyle
cd0025edb5
properly check for nil input or nil input pointer ( #4010 )
2020-03-02 12:48:30 -08:00
James Nugent
60eeff3265
Merge pull request #3990 from pulumi/jen20/main-dockerfile-for-proto
...
Update gRPC library used in Go SDKs and regenerate code with latest tools
2020-02-29 12:46:46 +00:00
Evan Boyle
3627f4ce70
ignore internal properties when unmarshaling ( #3996 )
2020-02-28 10:01:35 -08:00
James Nugent
652bc7ab75
Upgrade Go gRPC library in go.mod
2020-02-28 11:52:22 +00:00
James Nugent
666c5d5cdc
Remove use of github.com/pkg/errors from Go SDK
...
In preparation for publishing a separate module of the Go SDK for Pulumi
on which providers can depend, we should reduce the dependency footprint
so as to cause end users as few issues as possible with transitive
dependency versioning.
This commit removes all use of `github.com/pkg/errors` from the Go SDK
to that end, replacing it with the standard `errors` package and `fmt`
for error formatting where appropriate. We use the new (as of Go 1.13)
"%w" syntax for wrapping errors, so this code is no longer compatible
with Go 1.12.
2020-02-26 16:27:07 +00:00