Skip to content

Guard against unknown languages attribute values#17512

Merged
czoido merged 1 commit into
conan-io:develop2from
AbrilRBS:ar/ward-bad-languages
Dec 19, 2024
Merged

Guard against unknown languages attribute values#17512
czoido merged 1 commit into
conan-io:develop2from
AbrilRBS:ar/ward-bad-languages

Conversation

@AbrilRBS
Copy link
Copy Markdown
Member

@AbrilRBS AbrilRBS commented Dec 19, 2024

Changelog: Fix: Error out when unknown language is used in languages attribute.
Docs: Omit

This ensures only known languages are used - Helpful when typing lowercase versions or variants of C++ by mistake. In case of C for example, this would lead to the cppstd setting unexpectedly affecting the pkgid, for which there was no warn before this

The only drawback for this is that it eliminates potential custom usages of the attribute in user customizations, but those can be solved by using any other user-specific attribute if needed

@AbrilRBS AbrilRBS added this to the 2.12.0 milestone Dec 19, 2024
Copy link
Copy Markdown
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

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

Looks good, I hope that nobody was already abusing this, even if it is experimental, but sounds good to protect early and learn.

@czoido czoido merged commit d819621 into conan-io:develop2 Dec 19, 2024
@AbrilRBS AbrilRBS deleted the ar/ward-bad-languages branch December 19, 2024 14:44
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.

3 participants