From b7dea1fae2ffad883d955ebf2376edd5bfa54dc7 Mon Sep 17 00:00:00 2001 From: Jacob Maine Date: Tue, 7 Oct 2025 09:30:52 -0700 Subject: [PATCH] Fix incorrect circular deps from namespaces required with `:as-alias`. Fixes #65 --- CHANGELOG.md | 1 + project.clj | 2 +- test-resources/without-violations/src/sample/logic/foo.clj | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 271f0ee..68abd50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased * [#22](https://github.com/fabiodomingues/clj-depend/issues/22): Restrict namespaces to access others namespaces on the same layer +* [#65](https://github.com/fabiodomingues/clj-depend/issues/65): Fix incorrect circular deps from namespaces required with `:as-alias`. ## 0.11.1 (2025-05-26) * [#61](https://github.com/fabiodomingues/clj-depend/issues/61): Fix reflection warnings. diff --git a/project.clj b/project.clj index f75828c..48d0004 100644 --- a/project.clj +++ b/project.clj @@ -7,7 +7,7 @@ [nubank/matcher-combinators "3.9.1"]] :resource-paths ["test-resources"]}} :dependencies [[org.clojure/clojure "1.11.1" :scope "provided"] - [org.clojure/tools.namespace "1.2.0"] + [org.clojure/tools.namespace "1.5.0"] [org.clojure/tools.cli "1.0.206"]] :scm {:name "git" :url "https://github.com/fabiodomingues/clj-depend"} :deploy-repositories [["releases" {:url "https://repo.clojars.org" diff --git a/test-resources/without-violations/src/sample/logic/foo.clj b/test-resources/without-violations/src/sample/logic/foo.clj index 413a78e..bbaa9d9 100644 --- a/test-resources/without-violations/src/sample/logic/foo.clj +++ b/test-resources/without-violations/src/sample/logic/foo.clj @@ -1 +1,2 @@ -(ns sample.logic.foo) +(ns sample.logic.foo + (:require [without-violations.src.sample.logic.bar :as-alias bar]))