Comments (8)
PR incoming
from renameio.
FYI, Travis now has Windows support too: https://docs.travis-ci.com/user/reference/windows/
It's new though, so it might be a bit rough around the edges. But you should definitely have Mac and Windows on CI.
from renameio.
Thanks for the reference. I’m not sure it makes sense to add Windows to travis before we have any Windows-specific code, though?
from renameio.
Of course - this was just an FYI, to add that once the project starts maintaining code just for Windows.
from renameio.
I have some windows code that should be a good start for it. You've fixed the bug I had of needing the file on the same filesystem to use move file - https://github.com/natefinch/atomic
(clearly check out the windows code in there)
It uses this syscall:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365240(v=vs.85).aspx
from renameio.
Hey @natefinch, hope you are well!
Thanks for the link to the windows code. Would you prefer I go ahead and copy it, or would you prefer contributing the code as a Pull Request to retain proper attribution?
from renameio.
From our chat at the Zürich Go meetup last week, I understood that it is not possible to do atomic file replacement on Windows.
If this understanding is correct, could you close this issue as CANTFIX
?
cc @zb140
from renameio.
Sure. I was referring to golang/go#22397 (comment)
from renameio.
Related Issues (20)
- TempFile: name bikeshedding HOT 5
- add a drop-in replacement for ioutil.WriteFile HOT 3
- convert to a Go module HOT 2
- TempDir can return an unusable directory HOT 3
- Allow user to control tempfile names (plus: weird interaction with ioutil.TempFile) HOT 3
- Question: fsync on file and/or directory HOT 5
- []byte vs io.Writer HOT 5
- Make it fast and easy to do multiple replacements HOT 7
- Atomic simultaneous file rename and contents replacement? HOT 2
- WriteFile is broken on Windows HOT 7
- symlink: don’t call os.RemoveAll twice HOT 19
- Add tips on preserving file metadata HOT 3
- Request: tag new version HOT 3
- maybe: doesn't build on Windows HOT 2
- Add TempFile Directoy parameter to WriteFile HOT 2
- WriteFile doesn't respect umask HOT 7
- fs.FS support? HOT 3
- Consider using O_TMPFILE HOT 1
- Add support for 'WithModificationTIme()' option HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from renameio.