-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
Describe the bug
When I work with a repo where the flake lockfile is ignored, I get:
$ nix develop --show-trace
warning: Git tree '/some/path' is dirty
warning: updating lock file '/some/path/flake.lock':
• Added input 'flake-utils':
...
evaluating derivation 'git+file:///some/path#devShells.aarch64-darwin.default'The following paths are ignored by one of your .gitignore files:
flake.lock
error:
… while updating the lock file of flake 'git+file:///some/path'
error: program 'git' failed with exit code 1
Steps To Reproduce
Use flake with flake.lock in gitignore file.
Expected behavior
Either:
nix developdoesn't try to commit the changes for ignored files, or- there's an option for "write updates, but don't commit"
nix-env --version output
nix-env (Nix) 2.13.3
Priorities
Add 👍 to issues you find important.
9999years and MartinLoeper