]> Cypherpunks repositories - gostls13.git/commit
cmd/go: scrub go.sum during go mod -sync
authorRuss Cox <rsc@golang.org>
Wed, 18 Jul 2018 19:36:04 +0000 (15:36 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 19 Jul 2018 18:15:55 +0000 (18:15 +0000)
commitef45945718c2374234879ee184c9af126937cb2c
treeab9c8ade36e3c3e1d8365e0edc71487c37d9652d
parent764d0bb0314c327a5149160ca77de9873dafb0fc
cmd/go: scrub go.sum during go mod -sync

go.sum accumulates cruft as modules are added and removed as
direct and indirect dependencies. Instead of exposing all that cruft,
let "go mod -sync" clean it out.

Fixes #26381.

Change-Id: I7c9534cf7cc4579f7f82646d00ff691c87a13c4a
Reviewed-on: https://go-review.googlesource.com/124713
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modcmd/mod.go
src/cmd/go/internal/modfetch/fetch.go
src/cmd/go/testdata/script/mod_sync_sum.txt [new file with mode: 0644]