From b7df5a7da62da841f56008ff4b28098d1e30bddd Mon Sep 17 00:00:00 2001 From: Charles Hall Date: Tue, 30 Apr 2024 01:59:03 -0700 Subject: [PATCH] allow loading env vars from `.env` if it exists This is primarily useful for replicating the environment from CI so that the `nix-build-and-cache` script is easier to invoke. --- .envrc | 2 ++ .gitignore | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.envrc b/.envrc index 403a9bdf..e080e228 100644 --- a/.envrc +++ b/.envrc @@ -3,3 +3,5 @@ use flake PATH_add bin + +dotenv_if_exists diff --git a/.gitignore b/.gitignore index 5d4e599f..a17d5fe5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Local environment overrides +/.env + # Cargo artifacts target