cmd/go: invalid -ldflags is silently ignored #43177
Open
Comments
From what I can tell, that flag is here: go/src/cmd/go/internal/load/flag.go Line 17 in 64fae25 That triggers the parsing case here: go/src/cmd/go/internal/load/flag.go Lines 52 to 63 in 64fae25 ...which succeeds because it finds Before we call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
go version go1.15.5 linux/amd64
The
-ldflags
of the secondgo run
is in invalid format, but the go command silently ignores it and keeps working.See above
link
command. That's missing-X main.X=Hello
The text was updated successfully, but these errors were encountered: