1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 18:01:16 +02:00

doc/rl-next: add better-flake-git-errors

This commit is contained in:
Jörg Thalheim 2025-05-14 22:57:07 +02:00
parent 7f07a94b64
commit 721b09a69f

View file

@ -0,0 +1,15 @@
---
synopsis: "Improve error message for untracked files in git-based flakes"
issues:
prs: [12870]
---
If Nix cannot access a file in a flake because it is not tracked by Git, it now provides clear instructions to resolve the issue:
```
error: The path 'foo/bar' in the repository "/path/to/repo" is not tracked by Git.
To make it accessible to Nix, you need to add it to Git by running:
git -C "/path/to/repo" add "foo/bar"
```