Always recreate recipe by evaluating .envrc
evaluating .envrc (not the cached section) should not be expensivemaster
parent
ba07678b31
commit
c767762ee0
|
@ -91,10 +91,8 @@ case $cmd in
|
||||||
mkdir -p "$(dirname ${cacheFile})"
|
mkdir -p "$(dirname ${cacheFile})"
|
||||||
dumpEnv > "${cacheFile}.pre"
|
dumpEnv > "${cacheFile}.pre"
|
||||||
source <(direnv stdlib)
|
source <(direnv stdlib)
|
||||||
if [[ .envrc -nt ${cacheFile}.recipe ]]; then
|
echo "Re-creating recipe"
|
||||||
echo "Re-creating recipe"
|
direnv exec . true > /dev/null
|
||||||
direnv exec . true > /dev/null
|
|
||||||
fi
|
|
||||||
source "${cacheFile}.recipe"
|
source "${cacheFile}.recipe"
|
||||||
dumpEnv > "${cacheFile}.post"
|
dumpEnv > "${cacheFile}.post"
|
||||||
diffEnvs "${cacheFile}.pre" "${cacheFile}.post" > "$cacheFile"
|
diffEnvs "${cacheFile}.pre" "${cacheFile}.post" > "$cacheFile"
|
||||||
|
|
Loading…
Reference in New Issue