This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-02-01
Channels
- # announcements (14)
- # architecture (30)
- # aws (34)
- # babashka (18)
- # beginners (114)
- # biff (5)
- # calva (128)
- # clerk (155)
- # clj-kondo (60)
- # clojure (82)
- # clojure-dev (25)
- # clojure-europe (20)
- # clojure-nl (1)
- # clojure-norway (17)
- # clojure-spec (13)
- # clojure-uk (3)
- # community-development (4)
- # core-logic (4)
- # cursive (5)
- # datomic (21)
- # deps-new (13)
- # emacs (5)
- # funcool (5)
- # graphql (3)
- # hyperfiddle (1)
- # introduce-yourself (1)
- # jobs (2)
- # kaocha (1)
- # london-clojurians (1)
- # lsp (13)
- # malli (16)
- # off-topic (6)
- # other-languages (1)
- # pathom (18)
- # re-frame (23)
- # releases (1)
- # remote-jobs (2)
- # tools-build (1)
- # tools-deps (12)
- # vscode (1)
- # xtdb (27)
clojure --help
output seems to have a duplicated -X:deps find-versions
line (at least on my machine) for the latest released version of Clojure CLI, :version "1.11.1.1208"
- not sure if it was in earlier versions.
is it possible to depend on an alias of a git dependency?
I want to depend on clerk
as a git dep, but also pull in the extra-deps
from this alias: https://github.com/nextjournal/clerk/blob/main/deps.edn#L36
Currently, no, but that’s something we’ve been talking about lately
I think it needs some consideration on both export and import sides
Like a lib would want to say what aliases it exports, and I think a downstream user might want to choose what it imports too
agree… in this particular case I am debating between exporting these two dependencies from my project: https://github.com/mentat-collective/clerk-utils/blob/main/deps.edn#L15-L20 and telling the user to bring their OWN clerk version, but wincing at the “please include both of these and make sure the SHA always matches”
oh! while I’ve got you, I had a Q - how does dependency resolution work between 1. git deps (if I include one and someone overrides it, presumably that works) 2. a git dep and the clojars version of that dep — for this one I assume there is no dependency resolution?
in my case this feature only works with git dependencies (the render dep is not available as a jar), so I dodge the problem. but I was was wondering if there were some way to tell tools.deps “I publish this code as a jar under this org/project, version == tag, please resolve that way” or something like that
at the moment, there is no comparison logic for git to mvn
so it will just fail and say you need to be explicit at top level about which one to use
but, there is a hole with a todo where this logic could go. maven jars have a pom, which has scm info, and it should actually be possible to compare the published git scm info for a jar and the git dep scm info and decide which was "newer", so maybe in the future