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

+2 votes
in Namespaces and vars by

:as-alias doesn't do any of the circular dependency checks that the other ways of using :require do. So it would appear that circular dependencies are fine, however contrib tools like tools.namespace still do the circular dependecy even for :as-alias forms, and throw errors when they are encountered.

1 Answer

+3 votes

:as-alias doesn't load, so seems like circular dependencies are not an issue.

tools.namespace has not been updated to handle :as-alias yet. See https://clojure.atlassian.net/browse/TNS-56

As another data point: This is currently blocking some cleanup refactorings we wanted to do once :as-alias has landed because it breaks the uberjar build (via tools.build).
Now fixed in tools.namespace 1.3.0