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: handle nil expressions in earlydecoder when parsing outputs with incomplete provider defined functions #324

Merged
merged 2 commits into from
Feb 29, 2024

Conversation

ansgarm
Copy link
Member

@ansgarm ansgarm commented Feb 23, 2024

No description provided.

@ansgarm ansgarm requested a review from a team as a code owner February 23, 2024 08:41
go.mod Outdated Show resolved Hide resolved
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

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

There are about 15 other calls to attr.Expr in the earlydecoder that we need to handle more gracefully. Even though most of the attributes only allow literal types and function calls are not allowed, we still shouldn't crash when a user types a function call.

@dbanck dbanck changed the base branch from main to pre-release February 29, 2024 10:13
@dbanck dbanck force-pushed the fix-nil-expr-panics-earlydecoder branch from 2a240b7 to e096c50 Compare February 29, 2024 10:14
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

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

budding-pop-friends

@ansgarm ansgarm merged commit f13c893 into pre-release Feb 29, 2024
1 check passed
@ansgarm ansgarm deleted the fix-nil-expr-panics-earlydecoder branch February 29, 2024 10:27
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.

2 participants