Skip to content

Commit

Permalink
Load .envrc.local before running nix
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Jan 17, 2024
1 parent 71726cc commit de475d8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ else
export INIT_WAIT_SEC="2"
fi

# Source the gitignored .envrc.local if it exists.
if test -f .envrc.local; then
watch_file .envrc.local
source .envrc.local
fi

# (Example env vars if you're not using the make commands, i.e. the config files, to set up query engine tests)
# export TEST_RUNNER="direct"
# export TEST_CONNECTOR="postgres"
Expand All @@ -50,9 +56,3 @@ then
use flake
fi
fi

# Source the gitignored .envrc.local if it exists.
if test -f .envrc.local; then
watch_file .envrc.local
source .envrc.local
fi

0 comments on commit de475d8

Please sign in to comment.