You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the path: flake reference to point to flakes inside a git repo, it has some odd behavior.
Steps To Reproduce
$ pushd"$(mktemp -d)"/var/folders/vw/ksgd_r_j51704dss486tzpmc0000gn/T/tmp.aMK4pdtqNS ~
$ git initInitialized empty Git repository in /private/var/folders/vw/ksgd_r_j51704dss486tzpmc0000gn/T/tmp.aMK4pdtqNS/.git/
$ nix flake initwrote: /private/var/folders/vw/ksgd_r_j51704dss486tzpmc0000gn/T/tmp.aMK4pdtqNS/flake.nix
$ nix build path:.error (ignored): error: end of string reachederror: … while fetching the input 'path:.' error: file '/private/var/folders/vw/ksgd_r_j51704dss486tzpmc0000gn/T/tmp.aMK4pdtqNS/.git/fsmonitor--daemon.ipc' has an unsupported type
$ # Or
$ nix build path:$PWDerror (ignored): error: end of string reachederror: … while fetching the input 'path:/var/folders/vw/ksgd_r_j51704dss486tzpmc0000gn/T/tmp.aMK4pdtqNS' error: path '/var' is a symlink
$ nix build "path:$PWD/"error (ignored): error: end of string reachederror: … while fetching the input 'path:/var/folders/vw/ksgd_r_j51704dss486tzpmc0000gn/T/tmp.aMK4pdtqNS/' error: path '/var' is a symlink
$ nix build "path:$(realpath $PWD)/"error (ignored): error: end of string reachederror: … while fetching the input 'path:/private/var/folders/vw/ksgd_r_j51704dss486tzpmc0000gn/T/tmp.aMK4pdtqNS/' error: file '/private/var/folders/vw/ksgd_r_j51704dss486tzpmc0000gn/T/tmp.aMK4pdtqNS/.git/fsmonitor--daemon.ipc' has an unsupported type
Expected behavior
I would expect Nix to ignore paths that it can't read, or understand, instead of throwing an error.
nix-env --version output
$ nix-env --versionnix-env (Nix) 2.24.6
Additional context
I'm trying to use path: to get around the whole git+file: using HEAD as ref by default.
I'd like to not have to git add . every time I want to evaluate my flake when I'm iterating over it, hence trying to use path:.
Describe the bug
When using the
path:
flake reference to point to flakes inside a git repo, it has some odd behavior.Steps To Reproduce
Expected behavior
I would expect Nix to ignore paths that it can't read, or understand, instead of throwing an error.
nix-env --version
outputAdditional context
I'm trying to use
path:
to get around the wholegit+file:
usingHEAD
asref
by default.I'd like to not have to
git add .
every time I want to evaluate my flake when I'm iterating over it, hence trying to usepath:
.Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: