Skip to content

fix: fetchTree using its own experimental features, rather than flakes' - #15654

Open
KiaraGrouwstra wants to merge 1 commit into
NixOS:masterfrom
KiaraGrouwstra:unflake-fetchtree
Open

KiaraGrouwstra wants to merge 1 commit into
NixOS:masterfrom
KiaraGrouwstra:unflake-fetchtree

Conversation

@KiaraGrouwstra

Copy link
Copy Markdown
Contributor

closes #5541.

Motivation

makes more sense given this feature had its own experimental feature

Context

disclaimer i used a coding agent in the creation of this patch.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@github-actions github-actions Bot added documentation with-tests Issues related to testing. PRs with tests have some priority labels Apr 10, 2026
Comment thread src/libexpr/primops/fetchTree.cc Resolved
@KiaraGrouwstra

KiaraGrouwstra commented Apr 13, 2026 •

Copy link
Copy Markdown
Contributor Author

from @edolstra on this general idea at #15662 (comment) (a thread on a nix-run, for context):

If you want commands like nix run to work on non-flake trees, it's probably better to add a new type of installable (e.g. nix run --from-tree github:my/repo attr). Not saying that's a good idea though, since such projects wouldn't be discoverable and wouldn't have hermetic evaluation.

@KiaraGrouwstra

Copy link
Copy Markdown
Contributor Author

to respond to @edolstra's comments:

such projects wouldn't be discoverable

to this i would pose that having one entrypoint does not preclude offering the other as well, i wouldn't see entrypoints offered as mutually exclusive.

nixpkgs itself, for one, offers a flake yet when contributing packages is commonly interacted with without it.

such projects [...] wouldn't have hermetic evaluation

as per the manual, the v3 cli seems to default to pure mode also for non-flake installables like --expr already.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

builtins.fetchTree requires flakes

2 participants