-
Notifications
You must be signed in to change notification settings - Fork 300
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 broken list parsing in cli arguments --tags and --experiments #772
Conversation
Currently, `buildkite-agent start --tags "a=1,b=2" sets a single tag of "a=1,b=2". This is a shortcoming of the upstream urfave.cli library which expects --tags "a=1" --tags "a=2". This adds a normalization for --tags and --experiments that makes them behave as expected.
Oh, I assume it's fine with |
(Where you specifically want |
Nope! Won't work! |
Wouldn't work in config either. |
As in, it has never worked? Or, it won't work with the current changes? I know that some customers use this syntax for things like:
|
(Actually, I can't remember if before |
Yeah, it's really perplexed me too. I'm pretty sure the example you just gave would have worked via the cli argument (because no splitting occurred), but failed via a config key. |
See Line 220 in 22864f1
|
I have no idea how to fix this with the current config syntax, beyond possibly suggesting people can escape commas? We'd need to add support for that. |
Just chatted with @lox in real life, we've never supported commas in tag values before, so it's fine to ship as-is! |
Currently,
buildkite-agent start --tags "a=1,b=2"
sets a single tag ofa=1,b=2
. This is a shortcoming of the upstream urfave.cli library (see urfave/cli#62) which expects--tags "a=1" --tags "a=2"
.This adds a normalization for --tags and --experiments that makes them behave as expected.