Relative git flake inputs git+file:relative/path
#12281
Labels
bug
feature
Feature request or proposal
fetching
Networking with the outside (non-Nix) world, input locking
idea approved
The given proposal has been discussed and approved by the Nix team. An implementation is welcome.
Is your feature request related to a problem?
git+file:relative/path
according to the process working directory instead of theflake.nix
base directory. This is unreliable. Evaluation should be invariant under the process working directory, or it would violate the ability to be used as a flake input, among other things.fetchTree
does not have a base directory argument (and no implicit argument either, because that'd also be bad)fetchTree
does not have the information to resolve relative paths.Proposed solution
fetchTree
call-flake.nix
(with a primop that does it? - unclear if that's future proof enough for reproducibility)baseDirectory
argument tofetchTree
Alternative solutions
Forbid altogether. This blocks some users:
git+file:./${submodule}
no longer works #9708Additional context
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: