-
Notifications
You must be signed in to change notification settings - Fork 80
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
Parameter / flag parsing from YAML does not remove quotes around quoted arguments #172
Comments
Hmm do you have an example showing what isn't working? In any case, I agree that it would be better to have a list. |
Yeah, I tried changing ...to: flags: -mod=vendor -a -tags 'netgo release' ...and it didn't set the |
Hmm, I swear that I had tested something similar and it did take into account the build tags but now I see what you describe. As a quick workaround, we can change From https://golang.org/cmd/go/#hdr-Compile_packages_and_dependencies
|
@simonpasquier Thanks! I didn't know that Go 1.13 supports comma-based separation now, that failed for me yesterday with an older Go version, but now it works :) |
@juliusv I didn't know either until today :-) I suspect that they moved away from the space-separated list because quoting is hard. |
I suspect this can be closed? |
@jan--f From what I understand, the original bug still exists, I just ended up working around it for my use case back then. |
The parameter parsing code at
promu/util/sh/sh.go
Lines 46 to 50 in 0455049
-tags 'foo bar'
), but it does not remove the quotes around quoted arguments before passing this to the execution layer. Thus, quoted arguments aren't currently working correctly.I wonder overall whether we should try to parse this as one line or go the "normal" way of just having a YAML list of command-line arguments with no postprocessing needed after YAML parsing.
The text was updated successfully, but these errors were encountered: