]> Cypherpunks repositories - gostls13.git/commit
[dev.cmdgo] cmd/go: maintain a go.work.sum file
authorMichael Matloob <matloob@golang.org>
Mon, 28 Jun 2021 19:48:03 +0000 (15:48 -0400)
committerMichael Matloob <matloob@golang.org>
Wed, 28 Jul 2021 18:11:31 +0000 (18:11 +0000)
commit288a83dcffef18514e8c01f0ca2053c6be185305
treea77f77dbc118f01f1c199ca45d6bf5598ca560fa
parent2c8acf63c233430f8fb48f37c6ec54a29bd53c28
[dev.cmdgo] cmd/go: maintain a go.work.sum file

This change causes the go command to maintain a separate go.work.sum
file when in workspace mode rather than using the go.sum files
from the individual modules. This isn't quite what the proposal
spec specifies, which is that the sums that don't exist in any
of the workspace modules are added to go.work.sum rather than
the necessary sums. That will be done in a future change.

Change-Id: I528b9b153a93a4cd67c5af471ad6d5bd3628578b
Reviewed-on: https://go-review.googlesource.com/c/go/+/334939
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/modfetch/fetch.go
src/cmd/go/internal/modload/buildlist.go
src/cmd/go/internal/modload/import.go
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/modload/load.go
src/cmd/go/internal/modload/modfile.go
src/cmd/go/testdata/script/work.txt
src/cmd/go/testdata/script/work_sum.txt [new file with mode: 0644]