// These pairings make no sense.
if *listFind && *listDeps {
base.Fatalf("go list -deps cannot be used with -find")
}
if *listFind && *listTest {
base.Fatalf("go list -test cannot be used with -find")
}
but the same is true of *listExports.
% go list -export -f '{{.Export}}' strconv
/Users/rsc/go/pkg/darwin_amd64/strconv.a
% go list -export -find -f '{{.Export}}' strconv
# strconv
../../strconv/atof.go:13:8: could not import math (open : no such file or directory)
../../strconv/atoi.go:7:8: could not import errors (open : no such file or directory)
../../strconv/bytealg.go:10:8: could not import internal/bytealg (open : no such file or directory)
../../strconv/eisel_lemire.go:22:2: could not import math/bits (open : no such file or directory)
../../strconv/quote.go:10:2: could not import unicode/utf8 (open : no such file or directory)
%
This should probably be fixed in cmd/go and possibly also in the docs, which say nothing about -find being incompatible with other flags.
The text was updated successfully, but these errors were encountered:
rsc
added
the
NeedsFix
The path to resolution is known, but the work has not been done.
label
Mar 25, 2022
Looks like a contributor sent a fix CL that we missed. I've reviewed it (it's small, self-contained, and low-risk), so I think this can indeed make Go 1.19.
cmd/go/internal/list/list.go says
but the same is true of *listExports.
This should probably be fixed in cmd/go and possibly also in the docs, which say nothing about -find being incompatible with other flags.
The text was updated successfully, but these errors were encountered: