cmd/go: invalid values for go build flag -p don't fail builds #46686
Labels
FrozenDueToAge
GoCommand
cmd/go
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
)?(Same in 1.16.)
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Either a build with the default value of
p
, as if-p=0
weren't there, or an error message and a non-zero exit code.What did you see instead?
Binary isn't built, there are no error messages, the exit code is zero.
See the following code:
go/src/cmd/go/internal/work/exec.go
Lines 179 to 183 in dc00dc6
Perhaps there should be either some validation there or something like:
The text was updated successfully, but these errors were encountered: