Skip to content

Commit 1def041

Browse files
committed
TNS-56 Dont consider :as-alias as a load dependency for namespaces
1 parent 7a17141 commit 1def041

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## 1.x series
44

5+
## Version 1.3.0
6+
7+
* Fix [TNS-56](https://clojure.atlassian.net/browse/TNS-56): Don't consider :as-alias as a load dependency for namespaces
8+
59
## Version 1.2.0
610

711
* Fix [TNS-51](https://clojure.atlassian.net/browse/TNS-51): Support namespaces as strings in require statements for CLJS

src/main/clojure/clojure/tools/namespace/parse.cljc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
f))
8989
(rest form))
9090
(option-spec? form)
91-
(deps-from-libspec prefix (first form))
91+
(when-not (= :as-alias (second form))
92+
(deps-from-libspec prefix (first form)))
9293
(symbol? form)
9394
(list (symbol (str (when prefix (str prefix ".")) form)))
9495
(keyword? form) ; Some people write (:require ... :reload-all)

src/test/clojure/clojure/tools/namespace/parse_test.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
[four :refer (a b)]]
2626
[com.example.sub
2727
[five :as five]
28-
six])
28+
six
29+
[eleven :as-alias eleven]])
2930
(:use [com.example
3031
seven
3132
[eight :as eight]

0 commit comments

Comments
 (0)