]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go: support overlaying go.mod files
authorMichael Matloob <matloob@golang.org>
Fri, 30 Oct 2020 21:11:36 +0000 (17:11 -0400)
committerMichael Matloob <matloob@golang.org>
Fri, 20 Nov 2020 18:29:46 +0000 (18:29 +0000)
commit676f0a45edd6b9be824f21530a13a695466880bf
tree60992647429c76300b91d7c9c0eb99b77ae76761
parenta19c925eda6987d91f316639db2ce774725f7a1a
cmd/go: support overlaying go.mod files

This change updates the lockedfile package to open files using the
new fsys.OpenFile function. The logic of fsys.Open has been moved into
fsys.OpenFile, and fsys.Open is now just a light wrapper around it.

For #39958

Change-Id: I552f1a45ac00ac06b5812008d17a61e610b4b113
Reviewed-on: https://go-review.googlesource.com/c/go/+/266797
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>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/fsys/fsys.go
src/cmd/go/internal/lockedfile/lockedfile_filelock.go
src/cmd/go/internal/lockedfile/lockedfile_plan9.go
src/cmd/go/internal/modcmd/vendor.go
src/cmd/go/internal/modload/import.go
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/search/search.go
src/cmd/go/testdata/script/mod_overlay.txt [new file with mode: 0644]