Skip to content

Commit

Permalink
Do variable expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus committed Nov 14, 2023
1 parent 21d1517 commit 127681f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Unreleased

## Added

## Fixed

## Changed

- Do variable expansion in environment variables

# 0.2.99 (2023-11-13 / 8ee9b60)

## Changed
Expand Down Expand Up @@ -41,4 +39,4 @@

# 1.0.0 (2014-08-16)

- First stable release
- First stable release
2 changes: 1 addition & 1 deletion src/environ/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 127681f

Please sign in to comment.