]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/modload: make it clear -mod can't be set in some cases
authorMichael Matloob <matloob@golang.org>
Tue, 23 May 2023 20:13:13 +0000 (16:13 -0400)
committerMichael Matloob <matloob@golang.org>
Mon, 4 Mar 2024 21:01:23 +0000 (21:01 +0000)
commit5dcc04aeacdaa78cc431e3f8b2119d2f351685b5
treeff8b9fee25744099914b6d735e74d02bb5bfd595
parentb09ac10badb169828240a3b0bfaa4a428eaca969
cmd/go/internal/modload: make it clear -mod can't be set in some cases

We check that -mod can't be set to mod in workspace mode, but then we
set BuildMod to mod for go work sync below. Make it clear that that's
okay because we can't pass -mod=mod to go work sync (or the other go
mod commands that can run in workspace mode that set mod=mod: go mod
graph, go mod verify, and go mod why).

Change-Id: Idfe6fea6a420211886e4f838e050be4bf7d1b71d
Reviewed-on: https://go-review.googlesource.com/c/go/+/497617
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/modload/init.go