This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-29
Channels
- # asami (1)
- # babashka (20)
- # beginners (3)
- # biff (1)
- # calva (5)
- # clj-kondo (68)
- # clojure (6)
- # clojure-europe (70)
- # clojure-losangeles (4)
- # clojurescript (1)
- # cursive (6)
- # exercism (1)
- # fulcro (3)
- # hyperfiddle (23)
- # introduce-yourself (1)
- # kaocha (1)
- # lambdaisland (8)
- # lsp (6)
- # off-topic (24)
- # pathom (24)
- # specter (1)
- # tools-deps (4)
- # xtdb (4)
I don't use deps.edn that much so I forgot if this is a thing: can you use branch name as a git dependency version specification, as opposed to using commit sha? Looking at the https://clojure.org/guides/deps_and_cli#_using_git_libraries and the https://clojure.org/reference/deps_and_cli#_git it doesn't seem possible.
No, you can use tag and short sha or just full sha. You can resolve a branch to get the last sha tho'...
For example:
;; (require '[clojure.tools.gitlibs :as gitlibs])
;; (defn load-master [lib]
;; (let [git (str " " lib ".git")]
;; (add-libs {lib {:git/url git :sha (gitlibs/resolve git "master")}})))