Giter VIP home page Giter VIP logo

Comments (9)

talex5 avatar talex5 commented on July 17, 2024

Rather than using a heuristic, could we have a special file at the top-level of the whole cache to indicate this? e.g. /var/cache/0install.net/implementations/.no-xbits or something? Might be more reliable than guessing.

from 0install.

bastianeicher avatar bastianeicher commented on July 17, 2024

I agree a flag file seems like a better solution. But who would be responsible for creating it? Any Zero Install instance running on Windows coming across an implementation directory that does not have one yet?

from 0install.

talex5 avatar talex5 commented on July 17, 2024

Yes, I think that makes sense (the check would be done on first write, I imagine).

from 0install.

bastianeicher avatar bastianeicher commented on July 17, 2024

I'll add the corresponding code to the next Zero Install for Windows release. I'd go for .no-unix-fs if that's fine for you.

from 0install.

talex5 avatar talex5 commented on July 17, 2024

Sounds good to me!

from 0install.

bastianeicher avatar bastianeicher commented on July 17, 2024

Ok, the .no-unix-fs generation code has been in the Windows releases for a while now, so most auto-updating users should have it by now.

Could you look into the OCaml side of this feature? I still have zero experience with the language.

from 0install.

talex5 avatar talex5 commented on July 17, 2024

Does this only affect 0install store audit / verify?

from 0install.

bastianeicher avatar bastianeicher commented on July 17, 2024

It also affects 0install select / download / update / run since a user might set up 0install on Linux to write newly downloaded implementations to a cache stored on an NTFS partition.

from 0install.

bastianeicher avatar bastianeicher commented on July 17, 2024

This could be split up into two steps:

  1. Modify 0install store audit / verify to look for presence of a .no-unix-fs file.
    If this is detected take the "executable" and "symlink" states from the .manifest file rather than looking the file system itself.
    Additional value provided: Implementations downloaded on Windows can be verified on Linux.
  2. Modify 0install store select / download / run to look for presence of a .no-unix-fs file.
    If this is detected write the "executable" and "symlink" states to the .manifest file but do not attempt to apply them to the file system. This would entail getting "executable" and "symlink" states from archives before extracting them.
    Additional value provided: Implementations downloaded on Linux can be used on Windows.

from 0install.

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.