-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: panic in cmd/go/internal/cache.(*DiskCache).markUsed #70600
Comments
I needed to make progress so I emptied GOCACHE, which solved the issue. I kept a copy of the old one if you need. |
I'm hitting this too, reproducibly. There's a missing err==nil check before using // markUsed reports whether the file is a directory (an executable cache entry).
func (c *DiskCache) markUsed(file string) (isExecutable bool) {
info, err := os.Stat(file)
if err == nil && c.now().Sub(info.ModTime()) < mtimeInterval {
return info.IsDir()
}
os.Chtimes(file, c.now(), c.now())
return info.IsDir()
} |
Change https://go.dev/cl/633037 mentions this issue: |
RC1 is currently planned for next week. Is this OK to land after the RC, or does it block the RC? If it blocks the RC, we should prioritize moving the fix forward. Thanks. |
This fix should definitely be in the RC. |
Go version
go version devel go1.24-733df2bc0a Mon Nov 25 02:23:41 2024 +0000 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
Tests run.
What did you expect to see?
The text was updated successfully, but these errors were encountered: