os: investigate why Stat(non-existent-file) on Windows with builders returns error prefixed with "CreateFile" #38841
Comments
It seems that the error that is being returned is from this line: https://github.com/golang/go/blob/master/src/os/stat_windows.go#L97 |
Hi Emmanuel, CreateFile is the WinApi name for Posix open(2). It only creates filesystem entries in certain cases. Why is the fix for #36437 examining the error string instead of EDIT: oh, it doesn't call os.Stat() directly. I imagine it needs a |
On Windows,
For the records, no index number shows on Windows 10 and |
Correct. https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea There is no Alex |
Got it, thank you @muhammadharis @networkimprov @iWdGo @alexbrainman for the answers! SGTM. |
Coming here from an unexpected trybot failure in https://storage.googleapis.com/go-build-log/ee4c7a10/windows-amd64-2016_e7a90c70.log
and CL 230941
where the relevant code is https://play.golang.org/p/El2eXIywXlu or inlined below
but oddly on the Windows builder it returned
The "CreateFile x.go" is quite unexpected. Perhaps we should investigate as to how "CreateFile" got invoked?
Kindly cc-ing @alexbrainman.
The text was updated successfully, but these errors were encountered: