cmd/go: buildmode ignored when using -o #20017
Labels
FrozenDueToAge
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?go version go1.8.1
What operating system and processor architecture are you using (
go env
)?adm64 Archlinux
What did you do?
hello.go:
What did you expect to see?
An error, as the documentation states:
However, I feel like the buildmode pkgFilter was ignored because of -o being used:
go/src/cmd/go/internal/work/build.go
Line 432 in 5890811
What did you see instead?
An archive named
hello
was produced.The text was updated successfully, but these errors were encountered: