-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fetchTree cleanup #9061
fetchTree cleanup #9061
Conversation
d2175fd
to
6545acd
Compare
I just went and merged #8509 the docs PR (which this includes, and @fricklerhandwerk and approved but did not write) so we can narrow the scope of what's left. Today we have $ git grep -i -l flake src/libfetchers/
src/libfetchers/fetch-settings.hh
src/libfetchers/fetchers.cc
src/libfetchers/fetchers.hh
src/libfetchers/indirect.cc
src/libfetchers/registry.cc
src/libfetchers/tarball.cc I am curious what does or does still make sense assuming this is stable. Here is what I recommend:
Additionally |
Hm, I didn't merge that PR because there are some things in it that are not correct (like "Fetch a single file from a URL") which this PR fixes.
Not in favor of that, it seems like unnecessary overengineering.
No, because it widens rather than restricts what BTW I would be in favor of removing |
This comment was marked as outdated.
This comment was marked as outdated.
ce1caa0
to
35ddc79
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: Valentin Gagarin <[email protected]> Supersedes NixOS#6740
Two changes: * The (probably unintentional) hack to handle paths as tarballs has been removed. This is almost certainly not what users expect and is inconsistent with flakeref handling everywhere else. * The hack to support scp-style Git URLs has been moved to the Git fetcher, so it's now supported not just by fetchTree but by flake inputs.
35ddc79
to
8eb4f73
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-10-13-nix-team-meeting-minutes-94/34395/1 |
This commit breaks the following flake:
with
we now get
and all my flakes in hydra are now broken 😕 |
Fixable with #9547 and then and adding the desired schemes to |
Thanks, so I basically now need to explicitly list |
After #9547, yes, but I haven't confirmed that |
I'm currently having something like this:
🤮 |
I believe since this PR the flake ref Is there any alternative way to specify the flake input of a git submodule in a subdirectory? |
Motivation
Reviewing current
builtins.fetchTree
behaviour, I made a few changes:The (probably unintentional) hack to handle paths as tarballs has been removed. This is almost certainly not what users expect and is inconsistent with flakeref handling everywhere else.
The hack to support scp-style Git URLs has been moved to the Git fetcher, so it's now supported not just by fetchTree but by flake inputs.
Context
Priorities
Add 👍 to pull requests you find important.