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.