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

Flake: wrong cached shell used #126

Closed
archseer opened this issue Nov 22, 2021 · 4 comments
Closed

Flake: wrong cached shell used #126

archseer opened this issue Nov 22, 2021 · 4 comments

Comments

@archseer
Copy link

After the release of nix 2.4 with flake support, I had to remove programs.direnv.nix-direnv.enableFlakes from my config since flakes are now always enabled: ''.../users/profiles/direnv' no longer has any effect; please remove it."

But now entering a directory that uses direnv+flakes uses the wrong environment, and I have to manually touch flake.lock or direnv reload to get the right shell.

https://asciinema.org/a/UVJsGokXgMzSveo6aC1MtrTO4

I've tried removing .direnv and clearing the cache.

@archseer
Copy link
Author

archseer commented Nov 22, 2021

Note that my flake-profile in .direnv also doesn't seem to appear in /nix/var/nix/gcroots/auto, and an invalid symlink appears there instead.

@archseer
Copy link
Author

Seems to be numtide/devshell#149

@Congee
Copy link

Congee commented Dec 7, 2021

Might reopen to keep track of this issue? Upstream says #109 is the cause

@Mic92
Copy link
Member

Mic92 commented Dec 7, 2021

If #109 is fixed, this issue is fixed as well. So this is fine.

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

3 participants