You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have a simple test case for you, but some data points:
This is a new issue in Go 1.20. It's working OK in Go 1.19.
It's been reported failing on Windows 8 and 10. It always fail for me on my Windows 8 VM.
It's not failing on Windows 11.
The failing code is more or less the snippet below:
_, err=f.Readdirnames(1)
iferr==io.EOF {
// Empty dir.err=os.Remove(dirname)
// Gets "process cannot access the file because it is being used by another process" on Windows <= 10.
}
And dirname has recently been used (but not anymore).
I don't have a simple test case for you, but some data points:
The failing code is more or less the snippet below:
And
dirname
has recently been used (but not anymore).gohugoio/hugo#10781
The text was updated successfully, but these errors were encountered: