Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to flake self not detected #542

Open
xhalo32 opened this issue Jan 2, 2025 · 1 comment
Open

Changes to flake self not detected #542

xhalo32 opened this issue Jan 2, 2025 · 1 comment

Comments

@xhalo32
Copy link

xhalo32 commented Jan 2, 2025

I have use flake . in .envrc.

Using e.g. self.rev which changes between commits does not trigger an update, but requires manual direnv reload.

@bbenne10
Copy link
Contributor

bbenne10 commented Jan 2, 2025

I think you've not tracked files that need tracking. If .envrc ONLY contains use flake ., we're likely only tracking a small portion of your nix files (we track flake.nix, flake.lock, devshell.toml and your user's direnvrc file by default). If you have a more complex setup, you likely want to do something like watch_file **/*.nix to track every nix file. (This might be too aggressive, depending on your setup. But I don't have more information about that so we'll start here).

If you're already tracking all of your nix files: How is self.rev updating? Can you provide a reproduction repository so we can investigate further?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants