SIGN IN SIGN UP
hashicorp / terraform UNCLAIMED

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

0 0 32 Go

fix: Stop our anti-`init -upgrade` check panicking when an overridden provider is in use. (#38635)

Prior to this commit we wanted to validate the provider upgrade process using data that was only populated during backend initialisation (as that was the only place using that data previously). Now we enable the provider supply mode data to be available before backends are initialised.

After making that available, we can update the check after getProvidersFromConfig  that protects against the provider version being changed outside of a deliberate state migration process. If the state store provider is overridden then the upgrade process doesn't impact that provider anyway, so the check can be skipped. Also, this protects against errors if there was ever a built in provider supplying a state store implementation.
S
Sarah French committed
cf0aae24f4cc8456c4cbcc3d21eac124992a8c68
Parent: dcfb482
Committed by GitHub <noreply@github.com> on 5/28/2026, 9:37:39 AM