Fork me on GitHub
#deps-new
<
2022-08-29
>
ChillPillzKillzBillz08:08:40

Hello, I am trying to install clj-new on my windows setup. when I run the following in powershell, I get the error of invalid tag in git.

(base) PS C:> clojure -Ttools install com.github.seancorfield/clj-new '{:git/tag "v1.2.399"}' :as clj-new
Execution error (ExceptionInfo) at clojure.tools.deps.alpha.extensions.git/coord-err (git.clj:44).
Library com.github.seancorfield/clj-new has invalid tag: v1.2.399
Any help? I've also attached the error log below
{:clojure.main/message
 "Execution error (ExceptionInfo) at clojure.tools.deps.alpha.extensions.git/coord-err (git.clj:44).\r\nLibrary com.github.seancorfield/clj-new has invalid tag: v1.2.399\r\n",
 :clojure.main/triage
 {:clojure.error/class clojure.lang.ExceptionInfo,
  :clojure.error/line 44,
  :clojure.error/cause
  "Library com.github.seancorfield/clj-new has invalid tag: v1.2.399",
  :clojure.error/symbol
  clojure.tools.deps.alpha.extensions.git/coord-err,
  :clojure.error/source "git.clj",
  :clojure.error/phase :execution},
 :clojure.main/trace
 {:via
  [{:type clojure.lang.ExceptionInfo,
    :message
    "Library com.github.seancorfield/clj-new has invalid tag: v1.2.399",
    :data
    {:lib com.github.seancorfield/clj-new,
     :coord
     {:git/tag v1.2.399,
      :git/sha "c82384e437a2dfa03b050b204dd2a2008c02a6c7"}},
    :at
    [clojure.tools.deps.alpha.extensions.git$coord_err
     invokeStatic
     "git.clj"
     44]}],
  :trace
  [[clojure.tools.deps.alpha.extensions.git$coord_err
    invokeStatic
    "git.clj"
    44]
   [clojure.tools.deps.alpha.extensions.git$coord_err
    invoke
    "git.clj"
    42]
   [clojure.tools.deps.alpha.extensions.git$eval1404$fn__1406
    invoke
    "git.clj"
    65]
   [clojure.lang.MultiFn invoke "MultiFn.java" 239]
   [clojure.tools.tools.api$install invokeStatic "api.clj" 45]
   [clojure.tools.tools.api$install invoke "api.clj" 20]
   [clojure.lang.AFn applyToHelper "AFn.java" 154]
   [clojure.lang.AFn applyTo "AFn.java" 144]
   [clojure.lang.Var applyTo "Var.java" 705]
   [clojure.core$apply invokeStatic "core.clj" 667]
   [clojure.core$apply invoke "core.clj" 662]
   [clojure.run.exec$exec invokeStatic "exec.clj" 48]
   [clojure.run.exec$exec doInvoke "exec.clj" 39]
   [clojure.lang.RestFn invoke "RestFn.java" 423]
   [clojure.run.exec$_main$fn__205 invoke "exec.clj" 180]
   [clojure.run.exec$_main invokeStatic "exec.clj" 176]
   [clojure.run.exec$_main doInvoke "exec.clj" 139]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.lang.Var applyTo "Var.java" 705]
   [clojure.core$apply invokeStatic "core.clj" 667]
   [clojure.main$main_opt invokeStatic "main.clj" 514]
   [clojure.main$main_opt invoke "main.clj" 510]
   [clojure.main$main invokeStatic "main.clj" 664]
   [clojure.main$main doInvoke "main.clj" 616]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.lang.Var applyTo "Var.java" 705]
   [clojure.main main "main.java" 40]],
  :cause
  "Library com.github.seancorfield/clj-new has invalid tag: v1.2.399",
  :data
  {:lib com.github.seancorfield/clj-new,
   :coord
   {:git/tag v1.2.399,
    :git/sha "c82384e437a2dfa03b050b204dd2a2008c02a6c7"}}}}

2
ChillPillzKillzBillz09:08:26

the command to run on windows is clojure -Ttools install io.github.seancorfield/deps-new '{:git/tag \"v0.4.13\"}' :as new

ChillPillzKillzBillz09:08:45

in powershell special '\' are needed for demarking strings!!