Skip to content

Fix cyclic dependency check for as-alias - #2294

Merged
ericdallo merged 3 commits into
clojure-lsp:masterfrom
jramosg:fix-as-alias-cyclic-dependencies
May 27, 2026
Merged

ericdallo merged 3 commits into
clojure-lsp:masterfrom
jramosg:fix-as-alias-cyclic-dependencies

Conversation

@jramosg

@jramosg jramosg commented May 27, 2026

Copy link
Copy Markdown
Contributor

Aliases created with :as-alias do not load the target namespace, so they should not count as dependency edges when detecting namespace cycles.

Add same-line and multiline regression coverage for :as-alias requires.

Fixes: #2108

  • I created an issue to discuss the problem I am trying to solve or an open issue already exists.
  • I added a new entry to CHANGELOG.md
  • I updated documentation if applicable (docs folder)

Aliases created with :as-alias do not load the target namespace, so
they should not count as dependency edges when detecting namespace
cycles.

Add same-line and multiline regression coverage for :as-alias requires.

Fixes: clojure-lsp#2108
@jramosg
jramosg force-pushed the fix-as-alias-cyclic-dependencies branch from cba6b05 to 178577f Compare May 27, 2026 07:00

@ericdallo ericdallo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thank you!

@ericdallo
ericdallo merged commit 0063511 into clojure-lsp:master May 27, 2026
12 of 13 checks passed
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

Successfully merging this pull request may close these issues.

cyclic-dependencies is over-zealous #2 about :as-alias

2 participants