Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow terraform init when only test files are present in directory #36429

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dsa0x
Copy link
Contributor

@dsa0x dsa0x commented Feb 5, 2025

Fixes #35040

Terraform init is largely a no-op when there is no terraform configuration. However, since we allow users to run terraform test inside a directory which itself may not have configuration, this PR will allow terraform init to proceed.

Target Release

1.11.x

CHANGELOG entry

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

@dsa0x dsa0x marked this pull request as ready for review February 5, 2025 10:01
@dsa0x dsa0x requested a review from a team as a code owner February 5, 2025 10:01
Copy link
Member

@SarahFrench SarahFrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From looking through this PR I'm happy that it's addressing the issue, but happy for merging to wait for a +1 from Liam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can terraform init fully initialize (for tests) if no .tf files exist the current working directory?
2 participants