terraform/internal/command/e2etest
Alisdair McDiarmid d42d83572b cli: Fix backend init failure with deleted cache
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.
2021-10-25 12:45:35 -04:00
..
testdata command/e2etest: TestProviderTampering 2021-10-05 10:59:59 -07:00
.gitignore Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
automation_test.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
doc.go Update various non-code references to renamed Go packages 2021-05-17 14:09:07 -07:00
init_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
main_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
make-archive.sh Update various non-code references to renamed Go packages 2021-05-17 14:09:07 -07:00
primary_test.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
provider_dev_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
provider_plugin_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
providers_mirror_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
providers_tamper_test.go cli: Fix backend init failure with deleted cache 2021-10-25 12:45:35 -04:00
provisioner_plugin_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
provisioner_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
remote_state_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
strip_ansi.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
unmanaged_test.go terraform: use ProtocolVersion from unmanaged providers' reattachConfig to chose the correct PluginClient (#28190) 2021-05-18 10:59:14 -04:00
version_test.go Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00