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

Warn when Cargo.toml contains keys we don't expect #13833

Merged

Conversation

dcbaker
Copy link
Member

@dcbaker dcbaker commented Oct 28, 2024

This prevents use from having uncaught python exceptions when a new key is added, as one recently was. The downside of course of warning is that we might configure incorrectly. At the moment I think that is the preferable way to go, especially since Cargo support is experimental and may fail anyway.

@dcbaker dcbaker force-pushed the submit/cargo-warn-on-extra-keys branch from 4ddcd3b to 5769074 Compare October 28, 2024 21:49
@dcbaker dcbaker force-pushed the submit/cargo-warn-on-extra-keys branch 3 times, most recently from 74ac291 to 75fa7d6 Compare November 1, 2024 16:28
Cargo sometimes adds new keys and Meson needs to gracefully handle
those. Currently, an unknown key will trigger an uncaught Python
exception, which is pretty much the worse case. With this change Meson
will instead issue a warning much like the one for unknown cpu
architectures.

See mesonbuild#13826 for the motivation for this change
@dcbaker dcbaker force-pushed the submit/cargo-warn-on-extra-keys branch from 75fa7d6 to 408bde7 Compare November 1, 2024 16:32
@eli-schwartz eli-schwartz merged commit 6eb1a27 into mesonbuild:master Nov 5, 2024
33 checks passed
@dcbaker dcbaker deleted the submit/cargo-warn-on-extra-keys branch November 6, 2024 18:13
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