cmd/link: -ldflags -X does not allow values with spaces #16743
Closed
Labels
Comments
go run -ldflags '-X "main.foo=bar baz"' main.go works for me. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please answer these questions before submitting your issue. Thanks!
go version
)?go env
)?If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
Then:
The linker doesn't like spaces in the value. In 1.6 this could be worked around by not using the equal sign, but that form is no longer allowed in 1.7
EDIT: Should note, I've tried all combinations of single-quote/double-quote/no-quote I could think of, none seem to work
The text was updated successfully, but these errors were encountered: