pulumi/sdk/go/common/resource
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
..
config Add the ability to copy configs between stacks (#4971) 2020-07-17 11:14:10 +01:00
plugin Implement GetRequiredPlugins for Python (#5787) 2020-12-03 19:22:16 -08:00
asset.go support jar files 2020-08-10 14:15:35 -07:00
asset_test.go add initial pull-request workflow (#5276) 2020-09-09 13:37:03 -07:00
custom_timeouts.go move pkg/resource -> sdk/go/common/resource, but leave nested resource packages 2020-03-18 13:36:19 -07:00
errors.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
properties.go Fix a few issues with resource references. (#5804) 2020-11-23 11:15:10 -08:00
properties_diff.go Add support for serialized resource references. (#5041) 2020-10-27 10:12:12 -07:00
properties_diff_test.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
properties_path.go Properly resize arrays when adding (#5872) 2020-12-06 21:23:50 +00:00
properties_path_test.go Properly resize arrays when adding (#5872) 2020-12-06 21:23:50 +00:00
properties_test.go fix unknown status for secrets wrapping unknowns (#4377) 2020-04-13 22:47:08 +01:00
resource_goal.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
resource_id.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
resource_id_test.go move pkg/resource -> sdk/go/common/resource, but leave nested resource packages 2020-03-18 13:36:19 -07:00
resource_operation.go move pkg/resource -> sdk/go/common/resource, but leave nested resource packages 2020-03-18 13:36:19 -07:00
resource_state.go Avoid replace on second update with import applied (#4403) 2020-04-15 18:52:40 -07:00
stack.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
status.go move pkg/resource -> sdk/go/common/resource, but leave nested resource packages 2020-03-18 13:36:19 -07:00
urn.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
urn_test.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00