Git Product home page Git Product logo

Comments (8)

natefinch avatar natefinch commented on May 5, 2024 3

PR incoming

from renameio.

mvdan avatar mvdan commented on May 5, 2024

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.

stapelberg avatar stapelberg commented on May 5, 2024

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.

mvdan avatar mvdan commented on May 5, 2024

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

from renameio.

natefinch avatar natefinch commented on May 5, 2024

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.

stapelberg avatar stapelberg commented on May 5, 2024

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.

twpayne avatar twpayne commented on May 5, 2024

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.

stapelberg avatar stapelberg commented on May 5, 2024

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

from renameio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.