Fork me on GitHub
#deps-new
<
2022-09-13
>
kenny20:09:15

Hi. clj-new templates cannot be reuse one of the built-in template names, correct (assumption derived from code https://github.com/seancorfield/clj-new/blob/5edf2a5568ad273b333a522aad315e220b3f7b76/src/clj_new/helpers.clj#L196-L199)? e.g., The below snippet will actually render the lib template and not my local template.

clojure -Tclj-new create :template '"/my-template/clj-template::lib"' \                                                                                                                                           
                         :name foo/bar

seancorfield21:09:29

Correct. The short, built-in template names are "reserved" in that respect. It's expected that folks who create templates would use more descriptive names.

seancorfield21:09:21

(and the same is essentially true for deps-new although there it depends much more on how exactly the classpath is put together)