cmd/go: go work sync corrupts go.sum #50038
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
release-blocker
Milestone
What version of Go are you using (
go version
)?What did you do?
Attempting to remove
replace
from golang.org/x/tools/gopls/go.mod,set up the workspace like https://go-review.googlesource.com/c/tools/+/369959
Then, ran
gotip work sync
.What did you expect to see?
gopls/go.mod
andgopls/go.sum
are updated to reflect dependency changes (maybe?)OTOH, I don't know what's the intended behavior.
The development was done using an uncommitted golang.org/x/tools module version.
If the code in golang.org/x/tools/gopls module depends on uncommitted changes in
golang.org/x/tools module, it's not possible to create a working
go.mod
/go.sum
untilthe change for golang.org/x/tools module is first committed & released.
It's likely I misunderstood the purpose of
gotip work sync
.What did you see instead?
Changes like this : https://go-review.googlesource.com/c/tools/+/370194/1
See the go.sum file missing all entries.
@matloob
The text was updated successfully, but these errors were encountered: