Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: characters are missed after $ when using command: go build -ldflags "-X main.VarName=go$name" #28426
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
It's attempting to substitute the environment variable
If you enclose the -ldflags argument in single quotes it will not attempt to substitute
Does that help you with your issue?