Welcome! Please see the About page for a little more info on how this works.

0 votes
in tools.deps by

See https://github.com/clojure/clojure-site/issues/306 for some of the background information.

Because the {{clojure}} shell script groups all {{-A}} options together before any {{-M}} options, if you say {{-Mfoo -Abar}} it is actually treated as {{-Abar -Mfoo}} and any {{:main-opts}} from {{bar}} will be ignored (assuming {{foo}} has {{:main-opts}}). The shell script should expand {{-A}} options on the fly (and not use {{all_aliases}}).

{{tools.deps}} needs to be checked for how it handles this as well to ensure it respects ordering.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/TDEPS-100 (reported by seancorfield)
...