From 127681f9d9252f9a5104d9097362519686a9a74f Mon Sep 17 00:00:00 2001 From: Arne Brasseur Date: Tue, 14 Nov 2023 10:46:13 +0100 Subject: [PATCH] Do variable expansion --- CHANGELOG.md | 8 +++----- src/environ/core.cljc | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e2defb..6972fef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,9 @@ # Unreleased -## Added - -## Fixed - ## Changed +- Do variable expansion in environment variables + # 0.2.99 (2023-11-13 / 8ee9b60) ## Changed @@ -41,4 +39,4 @@ # 1.0.0 (2014-08-16) -- First stable release \ No newline at end of file +- First stable release diff --git a/src/environ/core.cljc b/src/environ/core.cljc index 2cbd7bc..994850a 100644 --- a/src/environ/core.cljc +++ b/src/environ/core.cljc @@ -75,7 +75,7 @@ (read-system-env)) {})) (map (juxt (comp keywordize key) val)) - (dotenv/parse-dotenv (or (slurp-file ".env") "")))) + (dotenv/parse-dotenv (or (slurp-file ".env") "") {:expand? true}))) (defonce ^{:doc "A map of environment variables."} env (read-env))