This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-10
Channels
- # announcements (1)
- # babashka (178)
- # beginners (216)
- # bootstrapped-cljs (1)
- # brompton (5)
- # calva (3)
- # chlorine-clover (1)
- # clj-kondo (2)
- # cljdoc (37)
- # cljfx (4)
- # cljs-dev (2)
- # clojure (360)
- # clojure-chile (8)
- # clojure-europe (3)
- # clojure-italy (5)
- # clojure-nl (9)
- # clojure-spec (2)
- # clojure-sweden (1)
- # clojure-uk (61)
- # clojuredesign-podcast (1)
- # clojurescript (83)
- # clr (2)
- # conjure (4)
- # core-async (14)
- # cursive (20)
- # data-science (2)
- # datomic (15)
- # docker (11)
- # emotion-cljs (1)
- # figwheel-main (28)
- # find-my-lib (1)
- # fulcro (46)
- # helix (16)
- # honeysql (14)
- # jobs (10)
- # jobs-discuss (17)
- # joker (1)
- # juxt (9)
- # kaocha (8)
- # leiningen (3)
- # meander (3)
- # news-and-articles (1)
- # off-topic (110)
- # pathom (7)
- # pedestal (4)
- # protojure (2)
- # re-frame (12)
- # reagent (25)
- # ring (4)
- # shadow-cljs (109)
- # spacemacs (9)
- # specter (1)
- # sql (3)
- # tools-deps (23)
I can use the CLI to launch the Liquid Clojure editor from Windows Powershell, but only if I escape the double-quotes:
PS C:\Users\admin> clj -Sdeps '{:deps {mogenslund/liquid {:mvn/version \"RELEASE\"}}}' -m liq.core
It fails however if I try to use the alias:
PS C:\Users\admin> clj -A:liquid
Execution error (FileNotFoundException) at clojure.main/main (main.java:40).
Could not locate dk/salza/liq/core__init.class, dk/salza/liq/core.clj or dk/salza/liq/core.cljc on classpath.
Full report at:
C:\Users\admin\AppData\Local\Temp\clojure-4978726344790284382.edn
My deps.edn
entry:
:liquid
{:extra-deps {mogenslund/liquid {:mvn/version "RELEASE"}}
:main-opts ["-m" "dk.salza.liq.core"]}
All the other aliases seem to work fine.@porkostomus Looks like the project changed it's main namespace (from dk.salza.liq.core
to just liq.core
)
I'll update my dot clojure file
@porkostomus I fixed the alias in my repo -- if you cloned that, you can just git pull
to get the latest
@seancorfield Great, thanks!
I have just upgraded from 1.10.0.442 to 1.10.1.536, and I've found a change in behavior. In .442 I had changed my $INSTALL/lib/clojure/deps.edn to point the central and clojars repos to a local partial mirror. In .536, the same change has no apparent effect. Here is an example of my lib/clojure/deps.edn:
{
:paths ["src"]
:deps {
org.clojure/clojure {:mvn/version "1.10.1"}
}
:aliases {
:deps {:extra-deps {org.clojure/tools.deps.alpha {:mvn/version "0.8.677"}}}
:test {:extra-paths ["test"]}
}
:mvn/repos {
;; "central" {:url " "}
;; "clojars" {:url " "}
"central" {:url "file:///home/aaron/cljtest/central/"}
"clojars" {:url "file:///home/aaron/cljtest/clojars/"}
}
}
The reason I'm doing this is our development machines at work do not have internet access, so I determine in advance all of our central and clojars dependencies and cache those locally in NFS.
Is there a different way that I should override central and clojars default locations?that file is no longer used - it's embedded in a resource in the uber jar
you can set those in your ~/.clojure/deps.edn though and should have the same effect
Okay, I'll give that a try.
(that would have worked on older version too)
on that note, when I run clj -Sverbose on 1.10.1.536, the config_paths still lists the system install deps.edn file
yeah, it's hard-coded in there and hasn't been updated
there are actually some tools that rely on this output and do (now incorrectly) still use the file so I have been delaying on removing it
Super, that did work. You're right @dpassen1 - the -Sverbose flag output did lead me astray. I did like the file in the installation - that let me setup for all of my users in one place. But I'll switch us over to the ~/.clojure/deps.edn instead.
Given that the system deps is meant to be stable and immutable, I think it's good for it to no longer be an actual file.
It is. We use that at work to point to a repo-wide deps file, and then each subproject in the repo has its own deps file.
CLJ_CONFIG=../versions clojure -A:defaults ...
-- the :defaults
alias pulls in all the :override-deps
from versions/deps.edn
I had forgotten about CLJ_CONFIG - that seems like the better solution to what I'm doing. Thanks for the pointers everybody.