Skip to content

Commit d71bb60

Browse files
Briaoeuidhtnsbbatsov
authored andcommitted
Change project.clj path to already included one
`cider-nrepl` adds an extra `project.clj` to the build to be able to read the version string. Leiningen already includes the file at a different path though, so we can just use that one instead.
1 parent c4a47e1 commit d71bb60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/com/billpiel/sayid/core.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
(def version
1515
"The current version of sayid as a string."
16-
(-> (or (io/resource "com/billpiel/sayid/project.clj")
16+
(-> (or (io/resource "META-INF/leiningen/com.billpiel/sayid/project.clj")
1717
"project.clj")
1818
slurp
1919
read-string

src/sayid/plugin.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
(def version
66
"The current version of sayid as a string."
7-
(-> (or (io/resource "com/billpiel/sayid/project.clj")
7+
(-> (or (io/resource "META-INF/leiningen/com.billpiel/sayid/project.clj")
88
"project.clj")
99
slurp
1010
read-string

0 commit comments

Comments
 (0)