This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-29
Channels
- # babashka (4)
- # babashka-sci-dev (96)
- # beginners (79)
- # calva (26)
- # cider (5)
- # clerk (2)
- # clj-kondo (23)
- # clojars (14)
- # clojure (54)
- # clojure-europe (8)
- # clojure-sweden (3)
- # clojurescript (76)
- # datomic (12)
- # deps-new (6)
- # emacs (20)
- # events (3)
- # exercism (1)
- # fulcro (11)
- # funcool (12)
- # hugsql (14)
- # hyperfiddle (6)
- # kaocha (1)
- # lambdaisland (1)
- # lsp (22)
- # malli (1)
- # matcher-combinators (6)
- # nbb (6)
- # off-topic (128)
- # polylith (14)
- # re-frame (4)
- # reagent (1)
- # releases (4)
- # shadow-cljs (8)
- # tools-build (13)
- # tools-deps (13)
- # tree-sitter (5)
I'm running into a situation where if I use two aliases simultaneously, with different versions of the same maven dependency, an older version in the user config home deps.edn, and more recent version in the project deps.edn alias, the most recent version isn't being used. But I can't seem to immediately make a minimal example of this. Are there known reasons this might happen?
can you provide a deps.edn and how you're using it?
like are you using create-basis
in tools.build? if so, by default it does not use the user deps.edn in config
https://clojure.github.io/tools.build/clojure.tools.build.api.html#var-create-basis - you can choose to use it if desired
to do so you would call (create-basis {:user :standard})
Will see if I can figure out a minimal repro but my first trivial attempt was working correctly
Though actually now that you mention it maybe create-basis will be useful for debugging this 😅
if you're using the CLI, I would also look at -Stree or -Strace to diagnose
@U064UGEUQ you're not by any chance having a :deps
(without alias) entry in your user clojure deps.edn
right?
This came up in #C6QH853H8 once: it takes priority over whatever your local deps are which can be confusing
I'd prefer to use a single def to define the configuration for build tasks, rather than individual def statements. Does this example at https://practical.li/clojure/clojure-cli/projects/tools-build/#build-tasks seem to be a reasonable approach? Any alternatives that would make it simpler or anything basic I have missed? Thanks.