cmd/go: all
pattern in per package flags is inaccurate in module mode
#71318
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
all
has a slightly different meaning in module mode than it does inGOPATH
mode. InGOPATH
mode, it's pretty much everything:But in module mode, "all"
according to
go help packages
.We don't seem to handle this correctly when processing "all" in
-coverpkg
and the per package flags-asmflags
,-gccgoflags
,-gcflags
, and-ldflags
. The cmd/go/internal/load.MatchPackage function just matches every package for all.The text was updated successfully, but these errors were encountered: