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

initwd: require valid module name #33745

Merged
merged 1 commit into from Aug 30, 2023
Merged

Conversation

radditude
Copy link
Member

@radditude radditude commented Aug 25, 2023

We install remote modules prior to showing any validation errors during init so that we can show errors about the core version requirement before we do anything else. Unfortunately, this means that we don't validate module names until after remote modules have been installed, which may cause unexpected problems later if the module name is not a valid path.

Target Release

1.6.x + 1.5.x

Draft CHANGELOG entry

BUG FIXES

  • Terraform will no longer allow downloading remote modules to invalid paths.

We install remote modules prior to showing any validation errors during init
so that we can show errors about the core version requirement before we do
anything else. Unfortunately, this means that we don't validate module names
until after remote modules have been installed, which may cause unexpected
problems if we can't convert the module name into a valid path.
@radditude radditude force-pushed the radditude/validate-module-names branch from 1003dd3 to 06581d5 Compare August 29, 2023 03:15
@radditude radditude marked this pull request as ready for review August 29, 2023 03:16
@apparentlymart apparentlymart requested a review from a team August 30, 2023 16:27
@apparentlymart apparentlymart added this to the v1.6.0 milestone Aug 30, 2023
@kmoe kmoe merged commit 0f2314f into main Aug 30, 2023
6 checks passed
@github-actions
Copy link

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants