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

Forbid duplicated non-repeatable attributes #2483

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Conversation

casey
Copy link
Owner

@casey casey commented Nov 27, 2024

Forbid duplicated non-repeatable attributes in the parser. Duplicate attributes with different values were previously accepted by the compiler, often to ill effect, like multiple confirm attributes being allowed on a recipe, but only one being respected.

This fixes that by disallowing all duplicate non-repeatable attributes, regardless of whether they have different arguments or not. The only repeatable attribute is the [group] attribute, since recipes can be in multiple groups.

This is a backwards compatibility break, but it is most definitely a bug, and backwards compatibility breaking bug fixes are allowed.

@casey casey enabled auto-merge (squash) November 27, 2024 22:27
@casey casey merged commit fdf3474 into master Nov 27, 2024
5 checks passed
@casey casey deleted the forbid-duplicate-attributes branch November 27, 2024 22:28
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.

1 participant