Fork me on GitHub
#leiningen
<
2020-05-28
>
jco09:05:35

Is there any way to get lein-dotenv to work with Leiningen's trampoline?

noisesmith14:05:47

you can't portably set environment variables within the jvm, so that makes it effectively impossible

noisesmith14:05:18

someone could make a linux only / osx only extension that allows manipulating the environment, then you could make it work, I guess

noisesmith15:05:26

you can use the env shell utility to start a process with a specified environment, one trick I use is

$ env $(<env-file) lein ...
where env-file contains something like
FOO=bar
BAZ=quux

👍 4
jco06:06:04

I wonder how that trick translates to fish shell. It's not process substitution, right?

ccann22:05:15

does anyone know of a tool/gist to convert a project.clj to a deps.edn file

ccann22:05:41

emacs macro to the rescue