Skip to content

Conversation

@radeksimko
Copy link
Member

@radeksimko radeksimko commented Nov 4, 2025

This just moves the code that was added to init.go since 7f29df9

https://github.com/hashicorp/terraform/commits/main/internal/command/init.go

The goal is to better isolate the experimental codepath and reduce the risk of breaking things in the non-experimental ones.

Additionally, the PR also updates the condition and diagnostic wording to ensure it is gated not just behind experimental build but also behind the feature CLI flag.

I ran into a somewhat confusing/misleading diagnostic myself on init which motivated this PR:

Initializing the state store...
╷
│ Error: Provider unavailable
│ 
│   on main.tf line 7, in terraform:
│    7:   state_store "pss_fs" {
│ 
│ The provider pss ("registry.terraform.io/hashicorp/pss") is required to initialize the "pss_fs" state
│ store, but the matching provider factory is missing. This is a bug in Terraform and should be reported.
╵

Target Release

1.15.x

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@radeksimko radeksimko added the no-changelog-needed Add this to your PR if the change does not require a changelog entry label Nov 4, 2025
@radeksimko radeksimko force-pushed the radek/pss-isolate-init branch from 4a9eda3 to 00f71a0 Compare November 4, 2025 18:08
@radeksimko radeksimko marked this pull request as ready for review November 4, 2025 18:08
@radeksimko radeksimko requested a review from a team as a code owner November 4, 2025 18:08
SarahFrench
SarahFrench previously approved these changes Nov 5, 2025
Co-authored-by: Sarah French <[email protected]>
@radeksimko radeksimko added the 1.14-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Nov 5, 2025
@radeksimko radeksimko merged commit 5001deb into main Nov 5, 2025
13 checks passed
@radeksimko radeksimko deleted the radek/pss-isolate-init branch November 5, 2025 09:40
SarahFrench pushed a commit that referenced this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.14-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged no-changelog-needed Add this to your PR if the change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants