cmd/go: install fails to build while build succeeds when using go.work #50036
Labels
FrozenDueToAge
modules
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Reproduced with go tip
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Trying to remove
replace
in golang.org/x/tools/gopls/go.mod (https://go-review.googlesource.com/c/tools/+/369959).The following
go.work
file is in x/tools repo root.What did you expect to see?
Before reading the design proposal:
gotip install
succeeds, orif it's build error, both
go install
andgo build
fails.After reading the design proposal:
I wish I could use
go install
as before.But until we figure out how to support this workflow, improve the error message (i.e. maybe a warning if
go.work
exists ANDinstall
fails due to module issue...? ).What did you see instead?
I don't understand how gopls go.mod/go.sum remained in this incomplete state, but decided to follow the instruction.
Instead, users can try
cc @matloob @golang/tools-team
The text was updated successfully, but these errors were encountered: