Fork me on GitHub
#tools-deps
<
2022-03-30
>
Ben Sless13:03:54

is there a way to set mvn/local-repos in an alias?

Alex Miller (Clojure team)13:03:49

I often set it dynamically at the command line with -Sdeps '{:mvn/local-repo "foo"}'

Alex Miller (Clojure team)13:03:02

as always, feel free to make a request at ask clojure

Ben Sless13:03:38

I think I will, this will help clean up some messy ci scripts

dergutemoritz08:03:07

can confirm - we currently use a babashka task to patch it into our deps.edn in CI 🙈

dergutemoritz08:03:40

Passing via -Sdeps is a bit fragile IME. We had set up a shell alias for clojure before for passing it in by default but that doesn't work when it's invoked indirectly e.g. from another shellscript.

dergutemoritz08:03:07

can confirm - we currently use a babashka task to patch it into our deps.edn in CI 🙈

dergutemoritz08:03:40

Passing via -Sdeps is a bit fragile IME. We had set up a shell alias for clojure before for passing it in by default but that doesn't work when it's invoked indirectly e.g. from another shellscript.