yeah, i was looking for a way to do it without editing files so it's a bit more easier to integrate with certain systems... my approach right now is to just do System/getenv
from project.clj and that works
@lmergen you can use lein update-in
to only add the key on command line.
If that helps your cause.
So it becomes a command oriented thing, not a file edit.
yeah i saw that, it helps but it's just easier to pass around environment variables
I think getting and env variable in the project.clj can work nice though.
i just did :local-repo ~(System/getenv "M2_HOME")
if it's nil it uses the default
You can do :local-repo ~local-repo
. And you can def that as a var that does whatever logic needed - like an env var read at top of project.clj.
Sure. That works. If you have no other logic.
yup
I didn’t know what nil does. But makes sense it’d default. Needs something.
at least it works as default with the latest version of leiningen / pomegranate
i might raise an issue / PR with pomegranate, as it looks like i'm certainly not the only one that wants this
and it sounds like the correct place to fix this