terraform/configs/configupgrade
Martin Atkins 26c1e40ad7 configs/configupgrade: Normalize number literals to decimal
The v0.12 language supports numeric constants only in decimal notation, as
a simplification. For rare situations where a different base is more
appropriate, such as unix-style file modes, we've found it better for
providers to accept a string containing a representation in the
appropriate base, since that way the interpretation can be validated and
it will be displayed in the same way in the rendered plan diff, in
outputs, etc.

We use tv.Value() here to mimick how HCL 1 itself would have interpreted
these, and then format them back out in the canonical form, which
implicitly converts any non-decimal constants to decimal on the way
through.
2019-04-04 18:09:44 -07:00
..
test-fixtures configs/configupgrade: Normalize number literals to decimal 2019-04-04 18:09:44 -07:00
analysis.go configs/configupgrade: detect possible relative module sources (#20646) 2019-03-13 11:17:14 -07:00
analysis_expr.go configs/configupgrade: Do type inference with input variables 2018-12-07 17:05:36 -08:00
doc.go configupgrade: new package for upgrading configs for 0.12 2018-10-16 18:50:29 -07:00
module_sources.go configupgrade: Load source code for a module and detect already upgraded 2018-10-16 18:50:29 -07:00
module_sources_test.go configupgrade: Load source code for a module and detect already upgraded 2018-10-16 18:50:29 -07:00
upgrade.go configs/configupgrade: detect possible relative module sources (#20646) 2019-03-13 11:17:14 -07:00
upgrade_body.go configs/configupgrade: Prefer block syntax for list-of-object attributes 2019-04-01 13:30:24 -07:00
upgrade_expr.go configs/configupgrade: Normalize number literals to decimal 2019-04-04 18:09:44 -07:00
upgrade_native.go configs/configupgrade: detect invalid resource names and print a TODO (#20856) 2019-03-28 13:48:35 -04:00
upgrade_test.go configs/configupgrade: Prefer block syntax for list-of-object attributes 2019-04-01 13:30:24 -07:00
upgrader.go terraform: More wiring in of new provider types 2018-10-16 19:12:54 -07:00