This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-18
Channels
- # announcements (35)
- # babashka (31)
- # beginners (77)
- # biff (23)
- # calva (1)
- # clj-kondo (4)
- # cljsrn (3)
- # clojure (71)
- # clojure-dev (9)
- # clojure-europe (51)
- # clojure-france (3)
- # clojure-germany (1)
- # clojure-nl (3)
- # clojure-spec (9)
- # clojure-uk (42)
- # clojurescript (24)
- # clojureverse-ops (3)
- # component (16)
- # cursive (1)
- # data-science (8)
- # emacs (1)
- # fulcro (5)
- # graalvm-mobile (1)
- # graphql (2)
- # honeysql (36)
- # leiningen (3)
- # malli (3)
- # off-topic (16)
- # remote-jobs (1)
- # sql (3)
- # testing (19)
- # tools-deps (11)
- # xtdb (20)
If I'm using a :local/root
dependency, is there any way to tell it to use a specific profile alias from its deps.edn
?
not currently
if you want to vote, there is a request for that here https://ask.clojure.org/index.php/7843/allow-specifying-aliases-coordinates-that-point-projects
but even better would be to describe your use case in a comment htere
Sure. Here's my specific use-case:
At Metabase we ship both an FOSS edition (under the AGPL) and an Enterprise Edition under a commercial license. We can't ship the Oracle JDBC driver in the FOSS edition because the license terms of the JDBC driver make it AGPL-incompatible. However, we can ship it with the EE version.
The Oracle driver is itself a subproject in the larger Metabase-core repo.
So I want to be able to have a top-level :ee
aliases that merges in the :ee
aliases from the :local/root
stuff it pulls in. Example:
;; ./deps.edn
{:deps
{:local/root "oracle-driver"}
:aliases
{:ee
{:extra-deps {:local/root "oracle-driver", :alias :ee}}}}
;; oracle-driver/deps.edn
{:aliases
{:ee
{:extra-deps
{com.oracle.ojdbc/ojdbc8 {:mvn/version "19.3.0.0"}}}}}
please put it on ask, I'll lose this here
@camsaul You’ve introduced a new top-level key into your deps.edn
file? I think that’s a bit of a “no-no” — you could put it under an alias though (aliases can be “just data”).
I'm translated it from a project.clj
file for the example and got my wires crossed a bit
Ah, gotcha.