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
I am a new Nix user. After discovering that files that are untracked by git are not included in Nix flakes, I found a suggested workaround to use a path: input: https://hackmd.io/@nix-ux/Hkvf16Xw5?print-pdf#/
Unfortunately, neither of these result in the untracked file(s) being included:
inputs={local-src="path:";};
inputs={local-src={url="path:";flake=false;};};
However, if I use --override-input local-src "path:" it does work (even though as far as I can tell I am overriding the value with the exact same value).
Without override (untracked files are not included):
> nix build .#buildApp
error: builder for '/nix/store/qlc9344v6qm1cz7gnimxly73csvbzqn0-foo.drv' failed with exit code 1;
last 17 log lines:
# ... edited for brevity ...
> Running phase: installPhase
> No ignore.txt
Describe the bug
I am a new Nix user. After discovering that files that are untracked by git are not included in Nix flakes, I found a suggested workaround to use a
path:
input: https://hackmd.io/@nix-ux/Hkvf16Xw5?print-pdf#/Unfortunately, neither of these result in the untracked file(s) being included:
However, if I use
--override-input local-src "path:"
it does work (even though as far as I can tell I am overriding the value with the exact same value).Without override (untracked files are not included):
With override (untracked files are included):
Steps To Reproduce
I have created a minimal reproduction repo here: https://github.com/cecchi/nix-path-input-bug-repro
Expected behavior
--override-input
argument should not change the behavior when setting the same valuenix-env --version
outputPriorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: