]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/go: write changes to go.mod and go.sum after loading...
authorBryan C. Mills <bcmills@google.com>
Thu, 21 Apr 2022 17:09:17 +0000 (13:09 -0400)
committerHeschi Kreinick <heschi@google.com>
Mon, 9 May 2022 20:16:25 +0000 (20:16 +0000)
commit2d6881b91a9bc62d55db30bf4546f929d52072be
tree16503222ad72d76a5c86bf84358ea0b108826abe
parentf4f19990c6b4de65e906e6bb2327cfa45ca1d072
[release-branch.go1.18] cmd/go: write changes to go.mod and go.sum after loading the command-line-arguments package

This entrypoint was missed in CL 349600, and the behavior happened not
to be covered by existing tests.

Updates #52331.
Fixes #52468.

Change-Id: Iccf12e8e633215abe4bfa1c3ca2fe3a8391b5ba5
Reviewed-on: https://go-review.googlesource.com/c/go/+/401536
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
(cherry picked from commit cf697253abb781e8a3e8825b7a4b5b96a534b907)
Reviewed-on: https://go-review.googlesource.com/c/go/+/404094
Reviewed-by: David Chase <drchase@google.com>
src/cmd/go/internal/modload/load.go
src/cmd/go/testdata/script/mod_run_issue52331.txt [new file with mode: 0644]