Evan Boyle
9d2f40b686
fix unknown status for secrets wrapping unknowns ( #4377 )
...
* fix unknown status for secrets wrapping unknowns
* changelog
* add test for secret computed values
2020-04-13 22:47:08 +01:00
Evan Boyle
4bbddafe6c
update remote path for policy pack template tests ( #4381 )
2020-04-13 14:02:17 -07:00
Mikhail Shilkov
d3e7041c0d
Support the binary option for .NET ( #4355 )
...
Support the binary option for .NET
2020-04-12 21:34:50 +02:00
Evan Boyle
fe7877177c
fix stack reference helpers to handle nil values ( #4370 )
2020-04-12 08:44:08 -07:00
Evan Boyle
779c4144f9
Properly propagate unknowns in go SDK marshaling operations ( #4369 )
2020-04-11 22:20:03 -07:00
Evan Boyle
c3b2439094
Automate execution of go mod download
for pulumi new
Go templates ( #4353 )
2020-04-09 16:16:10 -07:00
Justin Van Patten
8c065b34ff
Remove unnecessary import ( #4350 )
2020-04-09 14:13:16 -07:00
Evan Boyle
cfea357cda
Add runtime.options.binary to Pulumi.yaml to make prebuilt go binaries opt-in ( #4338 )
2020-04-09 12:21:26 -07:00
Evan Boyle
7382de6b5f
Add Go SDK stack output helpers for String and ID ( #4341 )
2020-04-09 07:52:34 -07:00
Mikhail Shilkov
46dababc28
Add additional RunAsync overloads ( #4286 )
2020-04-09 16:43:43 +02:00
Evan Boyle
f50fd69c10
Define merge behavior for go resource options ( #4316 )
2020-04-07 14:19:33 -07:00
Mikhail Shilkov
1d171dbb74
Add Output.All overloads ( #4321 )
...
Add Output.All overloads
2020-04-07 20:51:05 +02:00
Pat Gavlin
2f22c1c59c
HCL2 updates ( #4309 )
...
Pulumi HCL2 IR:
- Add support for invokes
- Add support for resource options, incl. ranged resources
- Allow the apply rewriter to ignore promise-typed values
- Add tests for the binder
- Add support functions for TF: entries and range
NodeJS codegen:
- Simplify for expression codegen
- Add support for invoke codegen
- Add support for entries and range functions
- Add tests
Python codegen:
- Implement codegen for most expression types
- Add support for invoke codegen
- Add tests
2020-04-06 19:43:16 -07:00
Levi Blackstone
d363be9de0
Propagate additionalSecretOutputs
opt to Read in NodeJS ( #4307 )
2020-04-06 15:50:52 -06:00
Evan Boyle
ab659aa0c1
Reimplement getRequiredPlugins for go sdk ( #4297 )
2020-04-06 12:30:40 -07:00
Mikhail Shilkov
6d32d575e0
Enable features in mock monitor ( #4272 )
2020-04-03 08:33:40 +02:00
Mikhail Shilkov
0bce094dc1
Fix python mock's call ( #4274 )
...
Fix python mock's call
2020-04-03 07:28:52 +02:00
Justin Van Patten
dd104a00a7
Propagate secretness correctly in Python apply
( #4273 )
...
* Propagate secretness correctly in Python `apply`
* Improve `apply` test coverage
* Update CHANGELOG.md
2020-04-02 13:01:29 -07:00
Luke Hoban
9e37741916
[Go] Ensure Apply handles nil
output values ( #4268 )
...
Fixes #4247 .
2020-04-01 17:39:01 -07:00
Luke Hoban
a0f615ad09
Add package details and atttribution to schema ( #4256 )
2020-04-01 17:22:23 -07:00
Evan Boyle
8a8f424628
disable go plugin acquisition ( #4257 )
2020-03-31 23:00:35 -07:00
Luke Hoban
dd9ed3c938
Support grpc-js plugin servers ( #4253 )
...
In order to support grpc-js gRPC servers, we need to slightly loosen
our checks on plugin readiness. This change was already in the 2.x
branch, but porting back so that 1.x CLIs can also be compatible.
Fixes #4252 .
2020-03-31 14:18:09 -07:00
Justin Van Patten
a5ca20bbf2
Specify StringComparison.Ordinal to StartsWith ( #4244 )
...
StartsWith does a culture-sensitive comparison by default, and in this case, we really just want an ordinal comparison.
2020-03-31 08:24:58 -07:00
stack72
a1af9289c3
Move BuildUtil class to sdk
...
This was still in pkg and wasn't accessible from the scripts location.
This code should be in the go/common location of sdk so that it can be
accessed from within our build scripts
Without this change, we were not able to get access to the Version number
for Python and none of our Python builds have been publishing binaries
2020-03-31 12:07:24 +01:00
Luke Hoban
8826fe4857
Fix Node.js SxS checks for 1.x and 1.y ( #4235 )
...
Fixes #4234
2020-03-30 15:10:42 -07:00
Justin Van Patten
e6be38e285
PaC: Add initial config support for policy packs ( #4233 )
...
The initial config represents any config that was specified programmatically to the Policy Pack, for Policy Packs that support programmatic configuration like AWSGuard.
2020-03-30 12:52:05 -07:00
stack72
947e52b194
Merge branch 'master' into tasiah/4204/go-logging-bug
2020-03-27 18:29:23 +00:00
Tasia Halim
4afaf37b3a
fixed bug
2020-03-27 10:25:06 -07:00
Mikhail Shilkov
6e15c83e1a
Remove legacy .NET attributes ( #4190 )
...
Remove legacy .NET attributes
2020-03-27 10:51:42 +01:00
Matthieu Berthomé
7c75d4fe5b
ephemeral kwargs for log methods ( #4197 )
...
Co-authored-by: rienafairefr <rienafairefr@gmail.com>
2020-03-26 14:23:43 -07:00
Evan Boyle
80f1989600
Removing the need for vendoring ( #4167 )
2020-03-25 15:57:46 -07:00
Luke Hoban
215f5af505
Clarify documentation on Output.from_input
( #4178 )
2020-03-25 15:28:22 -07:00
Luke Hoban
738c6eac5b
Allow pulumi/pulumi 1.x and 2.x to be used SxS ( #4161 )
...
Fixes #4079 .
2020-03-24 21:59:25 -07:00
Evan Boyle
2408d34c71
Add missing builtin MapArray to the Go SDK ( #4144 )
2020-03-20 16:51:33 -07:00
Evan Boyle
c28c602247
capture std err when getting required plugins for go ( #4141 )
...
* capture std err when getting required plugins for go
2020-03-20 14:59:12 -07:00
evanboyle
5e1f597ea9
make distinction between python VERSION and PYPIVERSION for install vs release
2020-03-19 17:02:10 -07:00
evanboyle
163444bce6
disable logging test
2020-03-19 14:45:03 -07:00
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
1fa50398e2
update go.mods to pin to correct version of pb
2020-03-18 17:25:42 -07:00
evanboyle
71926f1af8
update go.mod after moving the language hosts back to /sdk
2020-03-18 17:16:16 -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
56c1dd7012
Revert "move sdk/dotnet/cmd/pulumi-language-dotnet -> pkg/cmd/pulumi-language-dotnet"
...
This reverts commit b7ea8198de
.
2020-03-18 17:13:46 -07:00
evanboyle
d93017dbde
Revert "move sdk/nodejs/cmd/pulumi-language-nodejs -> pkg/cmd/pulumi-language-nodejs"
...
This reverts commit a73044247e
.
2020-03-18 17:12:55 -07:00
evanboyle
48250176a1
Revert "move sdk/python/cmd/pulumi-language-python -> pkg/cmd/pulumi-language-python"
...
This reverts commit e2ee46fb23
.
2020-03-18 17:11:56 -07:00
evanboyle
be4b523e55
create go.mod for top level packages pkg sdk examples tests
2020-03-18 16:30:44 -07:00
Justin Van Patten
24e804bbe8
Support for running Python policy packs ( #4057 )
...
These changes enable running policy packs written in Python.
2020-03-18 16:15:57 -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
evanboyle
b7ea8198de
move sdk/dotnet/cmd/pulumi-language-dotnet -> pkg/cmd/pulumi-language-dotnet
2020-03-18 12:45:33 -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
evanboyle
6552df7139
fix python sdk Makefile, use common pkg/version.go
2020-03-18 12:33:18 -07:00
evanboyle
a73044247e
move sdk/nodejs/cmd/pulumi-language-nodejs -> pkg/cmd/pulumi-language-nodejs
2020-03-18 12:25:07 -07:00
evanboyle
e2ee46fb23
move sdk/python/cmd/pulumi-language-python -> pkg/cmd/pulumi-language-python
2020-03-18 10:19:22 -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
Mikhail Shilkov
dbe365376d
Add Stack Transformations to .NET SDK ( #4008 )
...
Stack transformations and integration tests
2020-03-16 17:40:52 +01:00
Luke Hoban
fdd9a57ff8
Implement GetSchema in dynamic providers ( #4083 )
...
It's not entirely clear why gRPC doesn't already report these cleanly as unimplemented, but for now we'll explicitly implement them to avoid any spurious warnings.
Fixes #4028 .
2020-03-15 15:36:08 -07:00
Tasia Halim
b6e5d2737d
Update Go logging to use LogArgs ( #4078 )
2020-03-13 13:30:05 -07:00
Luke Hoban
9da774e180
Fix Python mocks ( #4074 )
...
The original version of this code caused inconsistencies in the event
loop associated with a given thread. These changes elimintate the event
loop shenanigans the mocks were trying to play by updating _sync_await
to create an event loop if none exists in the current thread.
It's possible that this will cause problems if the tests run on a
different thread than the original program, as the tests are likely to
end up waiting on outputs created by the program, which is not supported
in Python.
Also adds test coverage of the mocking/testing support in Python.
2020-03-12 21:09:47 -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
Mikhail Shilkov
a95a4d1195
Unit testing in .NET ( #3696 )
...
Mock-based testing in .NET
2020-03-11 23:10:01 +01: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
Mikhail Shilkov
8f1534c895
Mention mocks in the missing project error ( #4041 )
2020-03-09 16:23:49 +01:00
Justin Van Patten
80f6c61310
Initial support for configuring policies ( #4015 )
2020-03-08 14:11:55 -07: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
Mikhail Shilkov
8e87b2b893
Relax the type check to accomodate what YAML parser returns ( #4023 )
...
Relax the type check to accomodate what YAML parser returns
2020-03-05 16:41:31 +01:00
Charly Román
560f1f130e
Python SDK fix type annotations for Output.all
and Output.concat
2020-03-03 22:00:37 -06: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