mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
Promote Out of date cache messages to error
This provides color so that the user can see them in the possible wall of text that direnv sometimes spits out.
This commit is contained in:
parent
f452533db5
commit
999093c7e6
1 changed files with 4 additions and 4 deletions
8
direnvrc
8
direnvrc
|
|
@ -253,9 +253,9 @@ use_flake() {
|
||||||
then
|
then
|
||||||
if [[ "$_nix_direnv_manual_reload" == "1" && -z "${_nix_direnv_force_reload-}" ]]; then
|
if [[ "$_nix_direnv_manual_reload" == "1" && -z "${_nix_direnv_force_reload-}" ]]; then
|
||||||
if [[ -e "$profile_rc" ]]; then
|
if [[ -e "$profile_rc" ]]; then
|
||||||
log_status "nix-direnv: cache is out of date. use \"nix-direnv-reload\" to reload"
|
log_error "nix-direnv: cache is out of date. use \"nix-direnv-reload\" to reload"
|
||||||
else
|
else
|
||||||
log_status "nix-direnv: cache does not exist. use \"nix-direnv-reload\" to create it"
|
log_error "nix-direnv: cache does not exist. use \"nix-direnv-reload\" to create it"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
@ -408,9 +408,9 @@ use_nix() {
|
||||||
then
|
then
|
||||||
if [[ "$_nix_direnv_manual_reload" == "1" && -z "${_nix_direnv_force_reload-}" ]]; then
|
if [[ "$_nix_direnv_manual_reload" == "1" && -z "${_nix_direnv_force_reload-}" ]]; then
|
||||||
if [[ -e "$profile_rc" ]]; then
|
if [[ -e "$profile_rc" ]]; then
|
||||||
log_status "nix-direnv: cache is out of date. use \"nix-direnv-reload\" to reload"
|
log_error "nix-direnv: cache is out of date. use \"nix-direnv-reload\" to reload"
|
||||||
else
|
else
|
||||||
log_status "nix-direnv: cache does not exist. use \"nix-direnv-reload\" to create it"
|
log_error "nix-direnv: cache does not exist. use \"nix-direnv-reload\" to create it"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
_nix_clean_old_gcroots "$layout_dir"
|
_nix_clean_old_gcroots "$layout_dir"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue