You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's how cmd/go works. You pass a single -ldflags option, not multiple ones. That is true on the command and line and it is true when using exec.CommandContext. See the discussion of ldflags and friends at https://golang.org/cmd/go/#hdr-Compile_packages_and_dependencies .
I'm using Go 1.10 in windows:
For some reason it appears as if
-ldflags
doesn't allow combining flags when used withexec.CommandContext
.The later
ldflag
flag seems to overwrite the prior.The text was updated successfully, but these errors were encountered: