Execution error running in repos with no tag
Closed this issue · 1 comments
tiye commented
=>> clj -A:release
Warning: lein-git-version git exited 128
{:exit 128, :out "", :err "fatal: No names found, cannot describe anything.\n"}
Execution error (NullPointerException) at java.util.regex.Matcher/getTextLength (Matcher.java:1283).
null
Full report at:
/var/folders/08/4fbsxdlx1pdbmlgsbqg3ss3m0000gn/T/clojure-5153470132041289338.edn
{:clojure.main/message
"Execution error (NullPointerException) at java.util.regex.Matcher/getTextLength (Matcher.java:1283).\nnull\n",
:clojure.main/triage
{:clojure.error/class java.lang.NullPointerException,
:clojure.error/line 1283,
:clojure.error/symbol java.util.regex.Matcher/getTextLength,
:clojure.error/source "Matcher.java",
:clojure.error/phase :execution},
:clojure.main/trace
{:via
[{:type java.lang.NullPointerException,
:at [java.util.regex.Matcher getTextLength "Matcher.java" 1283]}],
:trace
[[java.util.regex.Matcher getTextLength "Matcher.java" 1283]
[java.util.regex.Matcher reset "Matcher.java" 309]
[java.util.regex.Matcher <init> "Matcher.java" 229]
[java.util.regex.Pattern matcher "Pattern.java" 1093]
[clojure.core$re_matcher invokeStatic "core.clj" 4856]
[clojure.core$re_matches invokeStatic "core.clj" 4886]
[clojure.core$re_matches invoke "core.clj" 4886]
[garamond.git$current_status invokeStatic "git.clj" 39]
[garamond.git$current_status invoke "git.clj" 36]
[deps_library.release$default_options invokeStatic "release.clj" 16]
[deps_library.release$default_options invoke "release.clj" 14]
[deps_library.release$main invokeStatic "release.clj" 111]
[deps_library.release$main doInvoke "release.clj" 103]
[clojure.lang.RestFn invoke "RestFn.java" 397]
[clojure.lang.AFn applyToHelper "AFn.java" 152]
[clojure.lang.RestFn applyTo "RestFn.java" 132]
[clojure.core$apply invokeStatic "core.clj" 665]
[clojure.core$apply invoke "core.clj" 660]
[deps_library.release$_main invokeStatic "release.clj" 165]
[deps_library.release$_main doInvoke "release.clj" 164]
[clojure.lang.RestFn invoke "RestFn.java" 397]
[clojure.lang.AFn applyToHelper "AFn.java" 152]
[clojure.lang.RestFn applyTo "RestFn.java" 132]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.core$apply invokeStatic "core.clj" 665]
[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]]}}
https://github.com/workframers/garamond/blob/master/src/garamond/git.clj#L39
https://github.com/arrdem/cuddlefish/blob/master/src/main/clj/cuddlefish/core.clj#L106
Looks like it's just because I don't have any tag in that repo:
39 [_ prefix ver-str] (re-matches #"^(\D*)(.*)$" current)
mhuebert commented
@jiyinyiyong thanks - v0.3.4 no longer requires a git tag when specifying a fixed version from release.edn
or passing a --version
option.