This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-07
Channels
- # adventofcode (40)
- # aws (15)
- # babashka (76)
- # beginners (39)
- # calva (6)
- # cider (3)
- # clj-kondo (3)
- # clojure (89)
- # clojure-austin (1)
- # clojure-australia (4)
- # clojure-europe (42)
- # clojure-italy (9)
- # clojure-nl (27)
- # clojure-spec (8)
- # clojure-uk (17)
- # clojurescript (9)
- # conjure (1)
- # data-science (1)
- # datomic (19)
- # deps-new (4)
- # docker (9)
- # emacs (5)
- # events (1)
- # fulcro (36)
- # kaocha (31)
- # lambdaisland (5)
- # leiningen (3)
- # membrane (3)
- # nrepl (10)
- # off-topic (31)
- # pedestal (7)
- # reveal (47)
- # shadow-cljs (35)
- # sql (9)
- # test-check (1)
- # tools-deps (24)
- # uncomplicate (12)
- # xtdb (5)
I am working on updating a lein
template (for cryogen
) on my local machine and want to test it with clj-new
. The following failed. What did I do wrong?
Dorabs-iMac:prs dorab$ clj -X:new create :template '"/Users/dorab/Projects/prs/cryogen::cryogen"' :name myname/myblog
Failed with: Manifest type not detected when finding deps for cryogen/clj-template in coordinate #:local{:root "/Users/dorab/Projects/prs/cryogen"}
Execution error (ExceptionInfo) at clj-new.helpers/resolve-remote-template (helpers.clj:181).
Could not load artifact for template: cryogen
Tried coordinates:
[cryogen/boot-template "RELEASE"]
[cryogen/lein-template "RELEASE"]
For more detail, enable verbose logging with -v, -vv, or -vvv
Full report at:
/var/folders/lk/mf8f6ghs0zqcw70nmy739khm0000gn/T/clojure-5829912052402600295.edn
Dorabs-iMac:prs dorab$
Thanks.@dorab Manifest type not detected when finding deps for cryogen/clj-template in coordinate #:local{:root "/Users/dorab/Projects/prs/cryogen"}
means there's no pom.xml
or deps.edn
in that folder.
(that's a standard message from the Clojure CLI if you specify a dependency -- locally or via git -- that doesn't have a readable "manifest", i.e., doesn't have pom.xml
or deps.edn
: without one of those, the CLI cannot figure out what transitive dependencies are needed)
clj-new
will deploy Leiningen templates that it finds on Clojars because those include a pom.xml
file. I know that Leiningen will generate pom.xml
as part of an install or deploy. I'm not sure if there's a simpler command where Leiningen will just generate the pom.xml
file without the other stuff (I stopped using Leiningen several years ago).