This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-24
Channels
- # announcements (4)
- # asami (5)
- # babashka (20)
- # beginners (94)
- # bristol-clojurians (1)
- # calva (23)
- # cider (2)
- # clj-commons (3)
- # clj-kondo (43)
- # cljfx (2)
- # cljs-dev (13)
- # clojure (112)
- # clojure-dev (44)
- # clojure-europe (17)
- # clojure-nl (5)
- # clojure-poland (12)
- # clojure-spec (2)
- # clojure-uk (3)
- # clojurebridge (1)
- # clojurescript (92)
- # cursive (17)
- # data-science (8)
- # datahike (1)
- # datalevin (1)
- # datomic (3)
- # deps-new (7)
- # events (2)
- # fulcro (40)
- # graalvm (110)
- # holy-lambda (16)
- # introduce-yourself (1)
- # lsp (13)
- # malli (8)
- # missionary (12)
- # off-topic (10)
- # pathom (13)
- # polylith (10)
- # portal (28)
- # re-frame (37)
- # reitit (1)
- # releases (1)
- # shadow-cljs (30)
- # spacemacs (1)
- # tools-deps (9)
- # xtdb (10)
Thanks. Here is the situation I ran into.
dorabs-imac:repro dorab$ clj -Tnew template :name io.github.bombaywalla/dorabtemplate
Creating project from org.corfield.new/template in dorabtemplate
dorabs-imac:repro dorab$ clj -Sdeps '{:deps {io.github.bombaywalla/dorabtemplate {:local/root "./dorabtemplate"}}}' -Tnew create :template io.github.bombaywalla/dorabtemplate :name org.myorg/mylib
Execution error (ExceptionInfo) at org.corfield.new/create (new.clj:52).
Unable to find template.edn for io.github.bombaywalla/dorabtemplate
Full report at:
/var/folders/lk/mf8f6ghs0zqcw70nmy739khm0000gn/T/clojure-5831627045418717594.edn
dorabs-imac:repro dorab$ clj -Sdeps '{:deps {bombaywalla/dorabtemplate {:local/root "./dorabtemplate"}}}' -Tnew create :template bombaywalla/dorabtemplate :name org.myorg/mylib1
data-fn returning nil
template-fn returning edn
Creating project from bombaywalla/dorabtemplate in mylib1
The template name and the group/artifact don't need to match -- just as most code out there on GitHub doesn't have com/github/username/myns.clj
files.
Most GH projects in <someuser>/<somerepo> tend to have namespaces that begin with <somerepo>.<whatever>
clj -Sdeps '{:deps {this-can/be.anything {:local/root "./dorabtemplate"}}}' -Tnew create :template bombaywalla/dorabtemplate :name org.myorg/mylib1
Right. I understand that the group/artifact has nothing to do with the namespace name. Does this mean that I cannot, using just the defaults, create a template (or lib, for that matter) that has io.github
in the namespace? I would have to force the value of {{top}}
to be what I want it.
Correct. Or edit the template after creation.