Skip to content

Circular dependencies incorrectly reported for :as-alias #65

Description

@mainej

:as-alias was designed so that namespaces could refer to each other without creating a dependency between them. However, clj-depend reports circular dependencies created by :as-alias.

(ns a
  (:require [b :as b]))

(ns b
  (:require [a :as-alias a]))

;; Expected: no circular dep
;; Actual: circular dep reported

This is caused by a bug in clojure.tools.namespace through version 1.2.0, the version that clj-depend uses. It was fixed for version 1.3.0.

May I request that clj-depend upgrade its dependency, preferrably to 1.5.0, the current latest version of clojure.tools.namespace?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions