mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Previously, remote and cloud backends would automatically alias localterraform.com as the configured hostname during configuration. This turned out to be an issue with how backends could potentially be used within the builtin terraform_remote_state data source. Those data sources each configure the same service discovery with different targets for localterraform.com, and do so simultaneously, creating an occasional concurrent map read & write panic when multiple data sources are defined. localterraform.com is obviously not useful for every backend configuration. Therefore, I relocated the alias configuration to the callers, so they may specify when to use it. The modified design adds a new method to backend.Enhanced to allow configurators to ask which aliases should be defined. |
||
---|---|---|
.. | ||
testdata | ||
backend_apply_test.go | ||
backend_apply.go | ||
backend_local_test.go | ||
backend_local.go | ||
backend_plan_test.go | ||
backend_plan.go | ||
backend_refresh_test.go | ||
backend_refresh.go | ||
backend_test.go | ||
backend.go | ||
cli.go | ||
hook_state_test.go | ||
hook_state.go | ||
local_test.go | ||
testing.go |