mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
Set NIX_DIRENV_DID_FALLBACK where appropriate
This commit is contained in:
parent
b653b7226b
commit
aa50e0f781
1 changed files with 2 additions and 0 deletions
2
direnvrc
2
direnvrc
|
|
@ -326,6 +326,7 @@ use_flake() {
|
|||
# which is probably more useful than nothing.
|
||||
# Fallback to use that (which means just leaving profile_rc alone!)
|
||||
_nix_direnv_warning "Evaluating current devShell failed. Falling back to previous environment!"
|
||||
export NIX_DIRENV_DID_FALLBACK=1
|
||||
fi
|
||||
fi
|
||||
else
|
||||
|
|
@ -479,6 +480,7 @@ use_nix() {
|
|||
_nix_direnv_info "Renewed cache"
|
||||
else
|
||||
_nix_direnv_warning "Evaluating current nix shell failed. Falling back to previous environment!"
|
||||
export NIX_DIRENV_DID_FALLBACK=1
|
||||
fi
|
||||
fi
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue