This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-18
Channels
- # announcements (6)
- # aws (1)
- # babashka (47)
- # beginners (50)
- # calva (65)
- # cider (4)
- # clj-commons (17)
- # clj-kondo (44)
- # clojure (150)
- # clojure-europe (41)
- # clojure-nl (4)
- # clojure-spec (1)
- # clojure-sweden (4)
- # clojure-uk (6)
- # clojurescript (15)
- # clr (1)
- # conjure (1)
- # core-async (7)
- # cursive (5)
- # datomic (12)
- # events (2)
- # fulcro (17)
- # graphql (12)
- # introduce-yourself (1)
- # jackdaw (5)
- # jobs (2)
- # lsp (52)
- # malli (5)
- # meander (3)
- # minecraft (2)
- # missionary (2)
- # off-topic (10)
- # other-languages (9)
- # reitit (9)
- # remote-jobs (1)
- # ring (8)
- # rum (7)
- # shadow-cljs (9)
- # sql (2)
- # tools-deps (20)
- # xtdb (12)
Is it possible to use git repositories hosted in source hut with the new tools functionality? I'd like to be able to do
clojure -Ttools install '{:git/tag ...}' :as tool
Looking through the source of tools.deps, there is a hardcoded list of hosted https://github.com/clojure/tools.deps.alpha/blob/dce6bcba266e9261ed671f3f594d7b122f761bf1/src/main/clojure/clojure/tools/deps/alpha/extensions/git.clj#L17-L20 that seems to be parsing the git repo, but sourcehut is absent. I was hoping there would be a way to just provide a url directlyI think I have answered this myself (by looking more closely at the code). I can pick a meaningful name and provide a :git/url in the argument map. So this works
clojure -Ttools install '{:git/tag ... :git/url ""}' :as tool
Yes, support for most git url types is supported that way, including git file repos
Do you know if it's possible to do this with the clojure -X:deps find-versions
tool as well?
Should be
It takes an optional :git/url iirc
Actually it doesn't, but it easily could
That's what I thought, I had poked around but couldn't get it working. Is there a place I can open a ticket for that?
Is there any reason that a basis doesn’t convey which aliases were activated to form its classpath roots? (or is there and I’m just missing it)
Hmm, can :mvn/local-repo
be put into an alias, in order to override the cache path in CI (Gitlab) while keeping the default path locally?
what’s the equivalent of a peer dependency with tools.deps? i.e. if I’d like to ensure a library is included but don’t want to put constraints on the version or where it’s loaded from
(a user of your library can always specify a different version if they want -- but with the usual "not tested against that version" caveats)
https://research.swtch.com/npm-colors someone involved with golang tools writing about a recent npm issue with packages not depending on specific versions