opentofu/internal/plugin
Martin Atkins 868dc2f01b hcl2shim: Split out legacy subset
Due to some past confusion about the purpose of this package, it has grown
to include a confusing mix of currently-viable code and legacy support
code from the move to HCL 2. This has in turn caused confusion about which
parts of this package _should_ be used for new code.

To help clarify that distinction we'll move the legacy support code into
a package under the "legacy" directory, which is also where most of its
callers live.

There are unfortunately still some callers to these outside of the legacy
tree, but the vast majority are either old tests written before HCL 2
adoption or helper code used only by those tests. The one dubious exception
is the use in ResourceInstanceObjectSrc.Decode, which makes a best effort
to shim flatmap as a concession to the fact that not all state-loading
codepaths are able to run the provider state upgrade function that would
normally be responsible for the flatmap-to-JSON conversion, which is
explained in a new comment inline.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-07-10 08:13:25 -07:00
..
convert providers: Recommend -exclude when provider can't plan 2025-06-13 09:17:36 -07:00
discovery Fix typos (#1905) 2024-08-29 13:20:33 -04:00
mock_proto tfplugin5+tfplugin5: Adopt the latest protocol versions (#2817) 2025-05-19 07:00:49 -04:00
grpc_error.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
grpc_provider.go providers: Recommend -exclude when provider can't plan 2025-06-13 09:17:36 -07:00
grpc_provider_test.go hcl2shim: Split out legacy subset 2025-07-10 08:13:25 -07:00
grpc_provisioner.go Review and order locked struct fields (#1493) 2024-04-25 10:25:13 -04:00
grpc_provisioner_test.go hcl2shim: Split out legacy subset 2025-07-10 08:13:25 -07:00
plugin.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
serve.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
ui_input.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
ui_input_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00