GithubHelp home page GithubHelp logo

Comments (8)

gytis-ivaskevicius avatar gytis-ivaskevicius commented on June 15, 2024 1

I feel like that's just a misusage of flakes that you are talking about 🤔 Pretty much anything can be misused.
I guess if you'd like an option to enable auto registry could be created?

from flake-utils-plus.

Pacman99 avatar Pacman99 commented on June 15, 2024 1

Yeah agreed, opt-in is fine. I just wanted to share issues I've had with it. Its definitely a useful feature though.

from flake-utils-plus.

Pacman99 avatar Pacman99 commented on June 15, 2024

Not a huge fan of the auto-creating registry. It makes it so inputs are locked to paths in your nix store making flakes less reproducible. If you commit a lock file like that, others can't make use of it. Maybe a prefix/suffix could be added to all he registry entries, so they don't affect lock files.

from flake-utils-plus.

Pacman99 avatar Pacman99 commented on June 15, 2024

Not really, if your registry contains a an entry that links utils to /nix/store/abc then the next time you use your flake, the lock file will get its utils entry update to /nix/store/abc. When you share that flake with someone else, they won't be able to use it since they might not yet have downloaded /nix/store/abc. I've actually tried this before, nix give an error while going through the lock file.

I don't see any misuse here, you just build a flake with fup and then run a nix flake command on that flake and the issue occurs.

from flake-utils-plus.

gytis-ivaskevicius avatar gytis-ivaskevicius commented on June 15, 2024

The only case that it links to a path is if flake input is not defined. Or at least that's the only one I am aware of?

If that really is the only case - is this really an issue? 🤔

from flake-utils-plus.

Pacman99 avatar Pacman99 commented on June 15, 2024

Well yeah its specifically an issue for something like nixpkgs, where its pretty common to just get nixpkgs as an argument without defining the flake. But thats still a problem if its fairly likely for someone's nixpkgs input to not be reproducible. Maybe we could filter out nixpkgs, since thats probably the only case where teh issue would happen. But as more entries get added to the flake registry, it would become worse of an issue.

from flake-utils-plus.

gytis-ivaskevicius avatar gytis-ivaskevicius commented on June 15, 2024

To me, it sounds like it should be an opt-in feature (an option that the user should enable)
I'd hate to wait for a flake to get queried (especially one as big as nixpkgs) and then wait for dependencies to get downloaded that are not cached on my system

from flake-utils-plus.

gytis-ivaskevicius avatar gytis-ivaskevicius commented on June 15, 2024

Resolved in staging

from flake-utils-plus.

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.