cmd/go: go list without flags calculates deps/imports #27479
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
ToolSpeed
Milestone
What version of Go are you using (
go version
)?go version go1.11 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
go list
with just package names should be pretty fastWhat did you see instead?
go list
parses much of the source code even when-json
,-f
or-deps
is not set, and is often 2-5x faster with-find
.Should
-find
be set automatically when no other advanced flags are set?I also wonder if
go list
could take shortcuts when only parsing package names, perhaps avoid reading all.go
files when the package name is found./cc @bcmills
The text was updated successfully, but these errors were encountered: