aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2022-06-08 23:56:28 -0400
committerRuss Cox <rsc@golang.org>2022-07-05 12:57:42 +0000
commit84e091eef033255b4a3fdb515d677faa135714dc (patch)
tree0534ac81e1a3bab590b016892f6bc5eec7146bac /src/os/exec/exec.go
parentceda93ed673294f0ce5eb3a723d563091bff0a39 (diff)
downloadgo-84e091eef033255b4a3fdb515d677faa135714dc.tar.xz
cmd/go: record origin metadata during module download
This change adds an "Origin" JSON key to the output of go list -json -m and go mod download -json. The associated value is a JSON object with metadata about the source control system. For Git, that metadata is sufficient to evaluate whether the remote server has changed in any interesting way that might invalidate the cached data. In most cases, it will not have, and a fetch could then avoid downloading a full repo from the server. This origin metadata is also now recorded in the .info file for a given module@version, for informational and debugging purposes. This change only adds the metadata. It does not use it to optimize away unnecessary git fetch operations. (That's the next change.) For #53644. Change-Id: I4a1712a2386d1d8ab4e02ffdf0f72ba75d556115 Reviewed-on: https://go-review.googlesource.com/c/go/+/411397 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/os/exec/exec.go')
0 files changed, 0 insertions, 0 deletions