Skip to content
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

Windows support #1

Closed
stapelberg opened this issue Oct 30, 2018 · 8 comments
Closed

Windows support #1

stapelberg opened this issue Oct 30, 2018 · 8 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@stapelberg
Copy link
Collaborator

This package was developed/tested on Linux.

We should add windows-specific code which does the closest thing to the rename/fsync combination there is.

Contributions very welcome.

@stapelberg stapelberg added enhancement New feature or request help wanted Extra attention is needed labels Oct 30, 2018
@mvdan
Copy link

mvdan commented Oct 30, 2018

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.

@stapelberg
Copy link
Collaborator Author

Thanks for the reference. I’m not sure it makes sense to add Windows to travis before we have any Windows-specific code, though?

@mvdan
Copy link

mvdan commented Oct 30, 2018

Of course - this was just an FYI, to add that once the project starts maintaining code just for Windows.

@natefinch
Copy link

natefinch commented Nov 2, 2018

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

@stapelberg
Copy link
Collaborator Author

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?

@natefinch
Copy link

PR incoming

@twpayne
Copy link
Contributor

twpayne commented Jul 6, 2019

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

@stapelberg
Copy link
Collaborator Author

Sure. I was referring to golang/go#22397 (comment)

@stapelberg stapelberg added wontfix This will not be worked on and removed help wanted Extra attention is needed labels Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants