Fork me on GitHub
#tools-deps
<
2022-04-23
>
didibus04:04:11

Can you -A:alias an alias that specified a main-opts and use another -M as the main? I just want the extra-deps from that alias as well

seancorfield04:04:33

Yes, "last one wins" when multiple aliases specify :main-opts. That's in the docs I think?

didibus04:04:07

Hum, ok, my issue must be somewhere else then

seancorfield04:04:39

Oh, there might be an issue mixing -M and -A -- don't do that. Just use one or the other and specify multiple aliases.

☝️ 1
didibus04:04:25

That was it, mixing -A and -M don't work, just have to list the alias in the -M itself

seancorfield04:04:08

That's just a quirk of the clojure shell script really.

didibus04:04:48

Hum, that shell script is more loc than half my clojure programs 😛 , and its bash, so I'm not going to try to figure that one out haha

seancorfield04:04:27

Pah, we have 125k lines of Clojure!

didibus04:04:26

I'm exaggerating a bit, but it's a surprisingly long shell script lol. Ok, so I guess bash wins, the shell script is 487 loc, and borkdude's pure clojure rewrite is 708 loc hehe, I thought it might be smaller, but bash takes the cake today

borkdude10:04:46

I'd take 10 lines of Clojure over 5 lines of bash any time of the day

1
borkdude10:04:14

search for deps and add them to deps.edn in emacs :) https://twitter.com/borkdude/status/1517810425689219072 😎

👏 1
🧙 1