Skip to content

Commit

Permalink
Merge pull request #255 from Kaspazza/patch-1
Browse files Browse the repository at this point in the history
Add option for outdated-deps API to accept file-path instead of hardcoding it to empty string
  • Loading branch information
liquidz authored Aug 17, 2024
2 parents daf6321 + 1863bc6 commit aee51b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/antq/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
E.g. {\"clojars\" {:url \"https://clojars.org/repo\"}}"
([deps-map]
(outdated-deps deps-map {}))
([deps-map {:as options :keys [repositories]}]
([deps-map {:as options :keys [repositories file-path] :or {file-path ""}}]
(let [deps-edn (cond-> {:deps deps-map}
repositories (assoc :mvn/repos repositories))
antq-deps (dep.clojure/extract-deps "" (pr-str deps-edn))
antq-deps (dep.clojure/extract-deps file-path (pr-str deps-edn))
antq-options (-> options
(dissoc :repositories)
(assoc :reporter report/no-output-reporter))]
Expand Down

0 comments on commit aee51b5

Please sign in to comment.