Skip to content

rewriter: allow reading dict-valued kwargs; improve key-value pairs in CLI; minor improvements #14740

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

bgilbert
Copy link
Contributor

bgilbert added 4 commits June 23, 2025 16:22
The project ID must be "/" and cannot be an arbitrary string.
Fixes: e81acbd ("Use a single coredata dictionary for options")
Many rewriter subcommands expect key/value pairs as adjacent arguments.
If the last value is missing, show a user-friendly error instead of a
backtrace.

For: mesonbuild#13234
@bgilbert bgilbert requested a review from jpakkane as a code owner June 23, 2025 23:35
bgilbert added 2 commits June 23, 2025 16:43
The `default-options delete` and `kwargs delete` subcommands required
key/value pairs, where the key was deleted and the specified value was
ignored.  This matches the JSON script mode interface but is unpleasant
as a CLI.  Since the UI is documented to be unstable, we can change this.
Have the CLI `delete` commands accept a list of keys instead.

Fixes: mesonbuild#13234
We can't modify dict-valued kwargs (mesonbuild#14739) but this lets us at least read
them.
@bonzini bonzini added this to the 1.9 milestone Jul 9, 2025
@bonzini
Copy link
Collaborator

bonzini commented Jul 9, 2025

Fixes: #14739

@bgilbert
Copy link
Contributor Author

bgilbert commented Jul 9, 2025

@bonzini Nope, this PR allows reading dict-valued kwargs but not writing them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

meson rewrite kwargs delete project / <option> raises unhandled exception unless a dummy second value is passed
3 participants