-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
GoCommandcmd/gocmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.modules
Milestone
Description
What version of Go are you using (go version
)?
$ go version go version go1.11.2 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env N/A
What did you do?
Run go build -mod=readonly
when an update of go.mod
is needed.
What did you expect to see?
A more descriptive error message. Since -mod=readonly
is typically supposed to be used in CI, it will save a lot of manual work if the error message did actually tell why an update to go.mod
is needed.
E.g.:
go: github.com/sirupsen/logrus@v1.2.0 requires github.com/stretchr/testify@v1.2.2, but go.mod require @v1.2.1 and updates is disabled by -mod=readonly
What did you see instead?
go: updates to go.mod needed, disabled by -mod=readonly
aknuds1, mattysweeps and sunqi1993
Metadata
Metadata
Assignees
Labels
GoCommandcmd/gocmd/goNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.modules