Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use in a project that has a CLJ ns and a CLJS ns with the same name that requires it #8

Open
p-himik opened this issue May 10, 2023 · 1 comment

Comments

@p-himik
Copy link

p-himik commented May 10, 2023

clj -Thiera graph :ignore '#{hgs.platform.util}'
Execution error (ExceptionInfo) at clojure.tools.namespace.dependency.MapDependencyGraph/depend (dependency.cljc:89).
Circular dependency between hgs.platform.util and hgs.platform.util

The src/hgs/platform/util.clj ns form, abridged:

(ns hgs.platform.util
  (:require ;; Nothing from 'hgs at all.
   ...)
  (:import ...))

The src/hgs/platform/util.cljs ns form, abridged:

(ns hgs.platform.util
  (:require-macros [hgs.platform.util])
  (:require ;; Same as above - nothing from 'hgs.
   ...))

As you can see, the :ignore option didn't help. But maybe I didn't use it correctly.

@p-himik
Copy link
Author

p-himik commented May 10, 2023

Transitive ns dependencies are also an issue. E.g. x.cljs requires y.cljs that requires macros from x.clj - the tool will complain about a circular dependency between x and y.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant