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

Fix type-unaware target collection #340

Merged
merged 3 commits into from
Nov 3, 2023
Merged

Conversation

dbanck
Copy link
Member

@dbanck dbanck commented Nov 3, 2023

While working on hashicorp/terraform-schema#292, we discovered that we failed to collect type-unaware targets for attributes with AsReference enabled.

This also led to the discovery that we were incorrectly creating type-aware targets with a NilType, making them a type-unaware target.

This PR fixes all of that, allowing the correct collection of local targets for hashicorp/terraform-schema#292.

@dbanck dbanck added the bug Something isn't working label Nov 3, 2023
@dbanck dbanck self-assigned this Nov 3, 2023
@dbanck dbanck requested a review from a team as a code owner November 3, 2023 13:38
Copy link
Member

@radeksimko radeksimko left a comment

Choose a reason for hiding this comment

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

LGTM

@dbanck dbanck merged commit 2ce7ad1 into main Nov 3, 2023
5 checks passed
@dbanck dbanck deleted the b-fix-type-unaware-references branch November 3, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants