-
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
Labels
Milestone
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. |
GoVeronicaGo
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
Nov 27, 2024
matloob
added
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Dec 3, 2024
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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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: