-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Always run 'evaluating derivation' in direnv export
(cache check broken?)
#528
Comments
direnv export
(cache broken?)direnv export
(cache check broken?)
I checked if there is anything suspicious in the changelog of the last release, but I can't find anything: direnv/direnv@v2.34.0...v2.35.0 |
Also just updated to this version, but cannot reproduce the bug.
That deny file also doesn't exist but doesn't cause any trouble.
Is there something in your shell hook that constantly updates any of the watched files? |
Adding |
Thank you, this is my log when starts a new shell (fish)
|
@Mic92 I apologize. I'm using Tmux. The correct word is 2024-10-14.0.37.27.mov |
If you use Home-Manager there is also a direnv module upstream for it. |
Thank you for the great tools!
I'm a beginner in Nix, So I apologize if this is my configuration problem.
Problem
direnv export [fish|zsh]
always do 'evaluating derivation'.Expected
Context
eval "$(direnv hook zsh)"
with zsh,direnv hook fish | source
with fish.nix-direnv/direnvrc
Lines 318 to 328 in 0d71ed4
My .envrc is only "use flake".
What I checked
I read nix-direnv/direnvrc and found that nix-direnv checks the modified time of
$DIRENV_WATCHES
.This is my
$DIRENV_WATCHES
when activated direnv.My environment has no
/Users/ryota2357/.local/share/direnv/deny/da..1b
. Moreover, there is no$HOME/.local/share/direnv/deny
directory.Therefore, I assumed that(misunderstand)need_update=1
is always set and causing this problem. So I actually created that file and the problem seemed to be fixed.Environment
The text was updated successfully, but these errors were encountered: