]> Cypherpunks repositories - gostls13.git/commit
cmd/go: ignore replaces of main modules in workspace modules
authorMichael Matloob <matloob@golang.org>
Wed, 19 Jan 2022 18:38:05 +0000 (13:38 -0500)
committerMichael Matloob <matloob@golang.org>
Thu, 20 Jan 2022 19:10:29 +0000 (19:10 +0000)
commit65535bfe6dad2cb7535f6a5647b288e4489608f9
treeb224371e449beac5322213826f463ca7eeb3b833
parent59122f85bd3a1231dd5b49fa83319d634bc96f23
cmd/go: ignore replaces of main modules in workspace modules

And disallow replaces of any main modules in the go.work file itself.

Change-Id: Ifa9ba9eaed047e6a75fcde230d96c7c450c1a1ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/379534
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/modload/init.go
src/cmd/go/internal/modload/modfile.go
src/cmd/go/testdata/script/work_replace_main_module.txt [new file with mode: 0644]