mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
ae98bd12a7
This commit implements most of the intended functionality of the upgrade command for rewriting configurations. For a given module, it makes a list of all providers in use. Then it attempts to detect the source address for providers without an explicit source. Once this step is complete, the tool rewrites the relevant configuration files. This results in a single "required_providers" block for the module, with a source for each provider. Any providers for which the source cannot be detected (for example, unofficial providers) will need a source to be defined by the user. The tool writes an explanatory comment to the configuration to help with this. |
||
---|---|---|
.. | ||
testdata/filesystem-mirror | ||
doc.go | ||
errors.go | ||
filesystem_mirror_source_test.go | ||
filesystem_mirror_source.go | ||
filesystem_search.go | ||
http_mirror_source.go | ||
legacy_lookup_test.go | ||
legacy_lookup.go | ||
memoize_source_test.go | ||
memoize_source.go | ||
mock_source.go | ||
multi_source_test.go | ||
multi_source.go | ||
package_authentication_test.go | ||
package_authentication.go | ||
public_keys.go | ||
registry_client_test.go | ||
registry_client.go | ||
registry_source_test.go | ||
registry_source.go | ||
source.go | ||
types.go |