mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-16 03:32:54 -06:00
26c1e40ad7
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. |
||
---|---|---|
.. | ||
test-fixtures | ||
analysis_expr.go | ||
analysis.go | ||
doc.go | ||
module_sources_test.go | ||
module_sources.go | ||
upgrade_body.go | ||
upgrade_expr.go | ||
upgrade_native.go | ||
upgrade_test.go | ||
upgrade.go | ||
upgrader.go |