]> Cypherpunks repositories - gostls13.git/commit
cmd/go: don't print cached output for non-build list commands
authorMichael Matloob <matloob@golang.org>
Fri, 21 Oct 2022 18:28:46 +0000 (14:28 -0400)
committerMichael Matloob <matloob@golang.org>
Fri, 21 Oct 2022 19:37:23 +0000 (19:37 +0000)
commit99fcacfe9a09c5df0787eda15ace0f473c50363c
treec228993f7466f68c856fe694d38d4bddcdb08d1a
parent9e7c5030d064395e24a25dd1a81722f5583defcf
cmd/go: don't print cached output for non-build list commands

If a user is running a go list command that wouldn't trigger a build
(for example if -export was passed), don't print the cached stdout
outputs for previous builds of the artifacts.

Fixes #56375

Change-Id: I1d3e6c01d0eb3dada941bb2783ce2ac69aa3d5d2
Reviewed-on: https://go-review.googlesource.com/c/go/+/444836
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/work/buildid.go
src/cmd/go/internal/work/exec.go
src/cmd/go/testdata/script/list_compiler_output.txt [new file with mode: 0644]