]> Cypherpunks repositories - gostls13.git/commit
cmd/go: don't compute Deps fields if they're not needed
authorMichael Matloob <matloob@golang.org>
Mon, 14 Mar 2022 17:00:03 +0000 (13:00 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 20 Apr 2022 20:25:02 +0000 (20:25 +0000)
commitc75befeec2a8ef2fea3c41da589ca0ffddda506f
tree24acceefa80e39ef124408c2b655ae75a7654566
parent58340240576a9ad254d90da4570e5e6afb913959
cmd/go: don't compute Deps fields if they're not needed

If the user provides the -json flag to explicitly specify fields, but
doesn't specify the Deps or DepsErrors fields, skip computing the deps
fields.

For #29666

Change-Id: I15596c374aba1af13bdf5808d11d54abdc838667
Reviewed-on: https://go-review.googlesource.com/c/go/+/392495
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Michael Matloob <matloob@golang.org>
Auto-Submit: Michael Matloob <matloob@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/list/list.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/testdata/script/list_json_fields.txt