pulumi/sdk/go/common/resource/config
Justin Van Patten 33119659e0
Treat config values that start with '0' as strings (#4393)
When setting structured config values using `--path`, we automatically
treat values that can be converted into an integer via `strconv.Atoi` as
an integer, rather than as a string.

However, this ends up converting values like "0123456" into the integer
123456, stripping the leading 0, which isn't desirable for values like
commit SHAs, etc., where you want to keep the 0 (and keep it a string).

This change makes it so that values starting with 0 are not implicitly
converted to an integer; instead such values will remain a string.
2020-04-14 12:40:22 -07:00
..
crypt.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
key.go Breaking changes due to Feature 2.0 work 2020-04-14 09:30:25 +01:00
key_test.go move pkg/resource/config -> sdk/go/common/resource/config 2020-03-18 15:03:37 -07:00
map.go Treat config values that start with '0' as strings (#4393) 2020-04-14 12:40:22 -07:00
map_test.go Treat config values that start with '0' as strings (#4393) 2020-04-14 12:40:22 -07:00
value.go move pkg/resource/config -> sdk/go/common/resource/config 2020-03-18 15:03:37 -07:00
value_test.go move pkg/resource/config -> sdk/go/common/resource/config 2020-03-18 15:03:37 -07:00