cmd/link: Deprecated syntax -ldflags "-X var val"
fails with usage message
#15489
Labels
-ldflags "-X var val"
fails with usage message
#15489
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.
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
var=val
syntax, because they no longer care about compatibility with old go versions, they feel it is a bug in go that the old syntax is not being accepted. They feel that after thelink: warning
message about the deprecated syntax, the build should proceed, and not exit with a usage message.The text was updated successfully, but these errors were encountered: