pulumi/sdk/go/common
Joe Duffy a5c30f1547
Properly resize arrays when adding (#5872)
* Properly resize arrays when adding

The current logic attempts to update the array but, because
append may need to allocate a new array with adequate space,
the code can currently leave dest referring to the old,
under-sized array. The solution is to use the set(dest)
logic that already exists and is used for the IsNull case.

Added a test case that would fail before this fix and now passes.

This fixes pulumi/pulumi#5871.

* Add CHANGELOG entry
2020-12-06 21:23:50 +00:00
..
apitype [cli] Add an import command. (#4765) 2020-10-14 12:51:53 +01:00
constant expose execution kind via update metadata (#5258) 2020-08-31 09:07:59 -07:00
diag Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
encoding Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
resource Properly resize arrays when adding (#5872) 2020-12-06 21:23:50 +00:00
testing Add PULUMI_BACKEND_URL env var (#5789) 2020-11-22 15:27:59 -08:00
tokens Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
tools switch os/user with luser 2020-07-27 14:44:08 -07:00
util Implement GetRequiredPlugins for Python (#5787) 2020-12-03 19:22:16 -08:00
version move pkg/version -> sdk/go/common/version 2020-03-18 15:25:25 -07:00
workspace Implement GetRequiredPlugins for Python (#5787) 2020-12-03 19:22:16 -08:00