Closed mou-hao closed 3 years ago
I created a PR to x/sys/windows to add the constants: https://go-review.googlesource.com/c/sys/+/355350
Also created a proposal to add NtSetInformationFile
: https://github.com/golang/go/issues/48933
Added them in a comment in the build file of windowsext
, so we won't forget about them.
This should be good for review now. Cheers.
Hi,
This change intends to port
local_directory
to Windows and is part of buildbarn/bb-remote-execution#7. I want to make sure this is the right approach before I go ahead and implement a Windows worker.I saw some previous PRs related to this issue and understand there is a need for a file descriptor based approach to avoid race conditions and to have multiple conceptual cwd's, so in my port,
local_directory
is totally windows file handle based.The implementation passes all existing tests (except for
IsWritable
andIsWritableChild
because of the very different file access control model).There are some caveats though:
Cheers, mh
I am requested by my employer to include the following disclaimer here: