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 33 Go

Fix: Re-enable using prerelease providers in the new two-step provider download in `init` (#38502)

* test: Add pre-release to available providers. Existing tests don't use it because the configuration doesn't specify the prerelease as the version constraint.

This was the gap in my understanding - prerelease providers are handled differently in the installer logic. I believe it boils down to this: https://github.com/apparentlymart/go-versions/blob/29863fd2ba61c1fbf5b5529907e1463dd4e197de/versions/set_released.go#L5-L7

* test: Add failing tests that show expected behaviour when a pre-release of a provider is used

* fix: Ensure that any relevant version constraints from the config are available to use when installing providers present in the state

* test: Add test defining pre-release download behaviour that was present before v1.15

* test: Update test to reflect that 2 step init is no longer experimental or specific to the PSS project
S
Sarah French committed
559233329e4e530bab2441addaf0ccb7f97f913c
Parent: ecede32
Committed by GitHub <noreply@github.com> on 5/1/2026, 10:12:32 AM