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

Missing import target in module should error #35330

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Conversation

jbardin
Copy link
Member

@jbardin jbardin commented Jun 11, 2024

When grouping imports by module for validation, imports with no associated module were left out and would silently fail. Change the config transformer to check all import targets together to make sure they are all valid within a configuration.

Fixes #35303

When grouping imports by module for validation, imports with no
associated module were left out and would silently fail. Change the
config transformer to check all import targets together to make sure
they are all valid within a configuration.
@jbardin jbardin added the 1.9-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Jun 11, 2024
@jbardin jbardin requested a review from a team June 11, 2024 19:29
@jbardin
Copy link
Member Author

jbardin commented Jun 12, 2024

Merging and backporting now, to make sure it lands in 1.9.0, as it could result in a behavioral change if a configuration has existing invalid import blocks.

@jbardin jbardin merged commit ef69e5b into main Jun 12, 2024
6 checks passed
@jbardin jbardin deleted the jbardin/module-import-diags branch June 12, 2024 17:33
Copy link

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

jbardin added a commit that referenced this pull request Jun 12, 2024
backport #35330: Missing import target in module should error
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 Jul 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1.9-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

import block: for_each Error Diagnostics Missing / Importing Ignored
2 participants