From 3c7db9d4896039332a2aa2e15ca7b35ca9115916 Mon Sep 17 00:00:00 2001 From: JohnnyJayJay Date: Fri, 11 Oct 2024 15:36:23 +0200 Subject: [PATCH] add :exact-version to missing-mvn-deps function --- src/cljnix/core.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cljnix/core.clj b/src/cljnix/core.clj index dbce589..06f0929 100644 --- a/src/cljnix/core.clj +++ b/src/cljnix/core.clj @@ -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}"))))