mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 08:21:07 -06:00
d42d83572b
When an explicit backend is configured with a configuration which has not yet been initialized, running `terraform init` performs a state migration to fetch the remotely stored state in order to operate on it. Like the previous bug introduced by the recent provider diagnostics change, this code path was not correctly configured to enable init mode for the backend, which resulted in a fatal error during init when the cache dir is deleted. Setting the `Init` backend option allows this code path to continue without error when first initializing the backend for state migration. The new e2e test fails without this change. |
||
---|---|---|
.. | ||
testdata | ||
.gitignore | ||
automation_test.go | ||
doc.go | ||
init_test.go | ||
main_test.go | ||
make-archive.sh | ||
primary_test.go | ||
provider_dev_test.go | ||
provider_plugin_test.go | ||
providers_mirror_test.go | ||
providers_tamper_test.go | ||
provisioner_plugin_test.go | ||
provisioner_test.go | ||
remote_state_test.go | ||
strip_ansi.go | ||
unmanaged_test.go | ||
version_test.go |