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/link: Deprecated syntax `-ldflags "-X var val"` fails with usage message #15489
Try to build mongo-tools 3.2.5 or earlier on OS X with go 1.5 or later
Expected successful build
Got this warning and error:
I have reported this bug to the developers of mongo-tools, and while they will address the problem by changing mongo-tools to use the new
The warning and the failure are unrelated. The failure is because the -X flag expects two arguments: a variable name and a value. However, you're only providing a variable name, followed by another -X flag.
It looks like the
The only issue on Go's side is that it emits the warning even if the -X flag was invalid to begin with.
Of course! I should have noticed this. The