tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
mokr 2020-06-18T14:33:31.405Z

Just for information in regards to my question above: I got the uberjar generation with AOT working after switching to https://github.com/seancorfield/depstar and doing AOT by passing the -C option. It was a lot of trial and error so maybe I could have gotten https://github.com/tonsky/uberdeps to work as well. On top of of this I surfaced an issue that has been in my code for a long time: I run my prod server on port 6000, but remap it in docker-compose. Due to that I have never experienced that browsers (Chrome, FF, …) https://superuser.com/questions/188058/which-ports-are-considered-unsafe-by-chrome, before I now attempted to run the jar locally and couldn’t connect.

2020-06-18T19:06:27.407100Z

Is there deps.edn analogue of the lein-environ plugin? I.e. a facility for setting an env map in a sidecar file (or your global deps.edn file) that is merged with the global env?

alexmiller 2020-06-18T19:12:45.407500Z

not to my knowledge

2020-06-18T19:13:12.407900Z

Is it possible to set env vars in deps.edn or is that not really what it's meant for?

alexmiller 2020-06-18T19:13:32.408200Z

it's not possible right now

👍 1
alexmiller 2020-06-18T19:13:50.408700Z

you can of course just set them on the call to clj using normal shell methods

alexmiller 2020-06-18T19:14:30.409800Z

I wouldn't rule out the possibility of adding something like that in the future

2020-06-18T19:14:49.410Z

Yeah, just trying to figure out the "right" way to set them when launching a REPL from Cursive. Using the Cursive config works fine for now.

alexmiller 2020-06-18T19:15:22.410900Z

in clj, one option is to create an alias that adds an :extra-paths and then load config via a resource

alexmiller 2020-06-18T19:15:55.411300Z

an alias can also set Java system properties

alexmiller 2020-06-18T19:16:03.411700Z

so those are two paths to have an alias add extra config

2020-06-18T19:17:26.413500Z

That makes sense. "an alias can also set Java system properties" sounds promising. Thanks!

alexmiller 2020-06-18T19:17:57.414Z

but be careful that you're not putting sensitive values in your deps.edn

👍 1
alexmiller 2020-06-18T19:18:30.414900Z

you'd want to have a system property that point to a file (or env var) to read a sensitive value