-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: internal error in go work sync
#65363
Comments
go work sync
Some notes:
When a pruned module has a requirement on another root module, and that root is unpruned, we need to transition from the pruned side of the module graph to the unpruned side. I suspect that isn't happening when it needs to in |
Change https://go.dev/cl/571800 mentions this issue: |
The bug is triggering in the
|
The dependency on the mismatched
But |
Ok, here's the actual bad path: From there, we reach the bad
So it appears that in workspace mode we are failing to load the transitive dependencies of |
|
So the skew in the versions seems to come from applying the
Moreover, the error returned from |
So, to summarize:
The combination of the two bugs is what produces the observed symptoms. |
…racker.path For #65363. Change-Id: I82ae1098b00c8772ef8d3aa92197e7d8c66d1b37 Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest Reviewed-on: https://go-review.googlesource.com/c/go/+/571800 Reviewed-by: Michael Matloob <matloob@golang.org> Auto-Submit: Michael Matloob <matloob@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
We weren't able to get this done in time for 1.23, and the original error in the first issue comment isn't showing up anymore so we're going to push this to 1.24. |
Go version
go version go1.21.5 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
git clone https://github.com/synapsecns/sanguine
go work sync
git checkout 995354fca4e89c0931ea5f6f0a77f170aac2f13e
(this is happening across a couple commits and I found it on Add native ETH support to relayer synapsecns/sanguine#1840, just providing a single commit on master for reproducibility)(Note: recipe won't work for this kinda bug, but I created a repl of the repo here and ran the command just for ease of debugging.
What did you see happen?
What did you expect to see?
Success, another error, but not a panic.
The fact that this isn't handled gracefully tells me it's probably unintended behavior. But I'm a little unsure based on the context in edit.go
The text was updated successfully, but these errors were encountered: