Fork me on GitHub
#tools-deps
<
2018-10-14
>
isaac10:10:13

does deps.edn supports set env or properties?

dominicm10:10:56

@isaac Yes. Although I'm not certain that I fully understand what you're asking.

dominicm10:10:04

e.g.

āÆ clj -J-Dx=y -e '(System/getProperty "x")'
"y"
works.

isaac10:10:18

:local/root "${LIB_ROOT}/xxx.jar"

dominicm10:10:58

@isaac no, this doesn't work.

isaac10:10:38

there have difference normally between local dev env and production env

isaac10:10:04

IMO, deps.edn supports env variable (or property) is necessary.

dominicm10:10:20

You can emulate this by using -Sdeps. e.g. clj -Sdeps "{:deps {foo/bar {:local/root \"${LIB_ROOT}/xxx.jar\"}}}"

šŸ‘ 4
dominicm10:10:50

Normally we solve this by using different aliases for dev and production.

isaac11:10:21

why :main-opts ["-e" "(println 'hello)"] throws EOF while reading?

isaac11:10:09

it seems the :main-opts splits arguments by space

mfikes12:10:01

Workaround with Corfield comma:

:main-opts ["-e" "(println,'hello)"]

aisamu12:10:58

>Corfield comma šŸ™‚

šŸŽ© 8
8
šŸ˜ˆ 4
richiardiandrea18:10:46

Can clojure conjoin vectors in deps.edn ? I have a feature request in nrepl/nrepl that could really use that: https://github.com/nrepl/nREPL/issues/55

dominicm19:10:34

Your vector is just a string

dominicm19:10:05

You may be able to compose them, but I don't think so.

dominicm19:10:32

I think the correct fix is multiple -m flags

richiardiandrea20:10:55

Yep i agree! See suggestion in the nRepl issue šŸ˜„