Conversation
|
Ouch, just saw #5556 Can rework this to that state if needed/requested |
| The fetcher infrastructure is exposed via the `fetchTree` built-in. | ||
|
|
||
| `builtins.fetchTree` allows fetching a source tree using any | ||
| backends supported by the fetcher infrastructure. It subsumes the |
There was a problem hiding this comment.
Shouldn't mention "fetcher infrastructure". Instead it can refer to the docs on flake references (https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html#flake-references), specifically the attrset form.
| `builtins.fetchTree` can be used to fetch | ||
| plain files over the `http(s)` and `file` protocols in addition to | ||
| directory tarballs. | ||
| )", |
There was a problem hiding this comment.
There should be one or two examples here of how to use fetchTree.
It should also mention that fetchTree is experimental and that it requires a locked flakeref in pure eval mode (which is the default).
Co-authored-by: Eelco Dolstra <[email protected]>
Supersedes NixOS#6740
Supersedes NixOS#6740
Supersedes NixOS#6740
|
#8509 uh oh, we now have two contributions for this in a half-finished state. CC @fricklerhandwerk And #5556 before that! |
|
Closing in favor of #8509. Sorry for the wasted time, everyone. I hope we'll continuously get get better at reviewing in a timely manner now that we have a maintainers team. |
Co-authored-by: Valentin Gagarin <[email protected]> Supersedes NixOS#6740
Co-authored-by: Valentin Gagarin <[email protected]> Supersedes NixOS#6740
Co-authored-by: Valentin Gagarin <[email protected]> Supersedes NixOS#6740
Co-authored-by: Valentin Gagarin <[email protected]> Supersedes NixOS#6740
Co-authored-by: Valentin Gagarin <[email protected]> Supersedes NixOS#6740
Relates to #6728 and removes the fixme in
nix/src/libexpr/primops/fetchTree.cc
Line 185 in 6cb4128
Maybe someone can add a few words about what
fetchTreeactually does so we can expand the textOtherwise I'll rework the text over the next few days