Fork me on GitHub
#deps-new
<
2021-11-24
>
dorab00:11:00

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

seancorfield00:11:04

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.

seancorfield00:11:06

Most GH projects in <someuser>/<somerepo> tend to have namespaces that begin with <somerepo>.<whatever>

seancorfield00:11:03

clj -Sdeps '{:deps {this-can/be.anything {:local/root "./dorabtemplate"}}}' -Tnew create :template bombaywalla/dorabtemplate :name org.myorg/mylib1

dorab00:11:21

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.

seancorfield00:11:38

Correct. Or edit the template after creation.

dorab00:11:19

Gotit. Thanks.