Open krhubert opened 1 week ago
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Has this happened more than once?
I think we're going to need a way to reproduce the problem.
Has this happened more than once?
Yes
I think we're going to need a way to reproduce the problem.
It's gonna be extremely hard to me to reproduce it.
This happened when I worked on my project and switched between branches.
On the main
branch, go build
returned without errors, but on other branch with a single commit added,
go build panicked. Today I can't reproduce this case, but yesterday it was like that until a restarted WSL.
I'm not sure if/how I can help more. If there's not enough data to reproduce it I can close this issue.
Could you try clear the build cache (go clean -cache
) and see if you can still reproduce?
It could be some file corruption in the build cache, or when you switched branch, there was actually some collision in the build cache.
Go version
go version go1.23.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Run
Can't trace this right now, and give you a reproducible source code, because I'm not sure what's the root case. I'll keep looking.
What did you see happen?
What did you expect to see?
go build without errors