Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix snapshot version support for leiningen #146

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/cljnix/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@
(remove deps-set)
(map (fn [mvn-path]
(let [full-path (fs/path cache-dir mvn-path)]
(assoc (utils/mvn-repo-info full-path {:cache-dir cache-dir :mvn-repos mvn-repos})
; Setting :exact-version to "SNAPSHOT" here should be fine – if the path isn't a snapshot, it doesn't
; matter, and if it is, mvn-repo-info should return the correct result
(assoc (utils/mvn-repo-info full-path {:exact-version "SNAPSHOT" :cache-dir cache-dir :mvn-repos mvn-repos})
:hash (nix-hash full-path))))))

(fs/glob cache-dir "**.{pom,jar}"))))
Expand Down
Loading