rallyhealth/sbt-git-versioning

Unexpected tag on HEAD can cause scala.MatchError

ckmcd opened this issue · 0 comments

ckmcd commented
[info] Loading settings for project sbt-harmony-release from build.sbt,scripted.sbt ...
[info] Skipping fetching tags from git remotes; to enable, set the system property version.autoFetch=true
[info] GitVersioningPlugin set versionFromGit=0.2.26-1-d2888ba-SNAPSHOT
[info] GitVersioningPlugin set release=Patch
[info] GitVersioningPlugin set version=0.2.26
[info] GitVersioningPlugin set isCleanRelease=true
[info] Set current project to sbt-harmony (in build file:/mnt/mesos/sandbox/workspace/harmony-be/sbt-harmony-release/)
[info] Checking remote [origin] ...
[info] Updating ProjectRef(uri("file:/mnt/mesos/sandbox/workspace/harmony-be/sbt-harmony-release/"), "sbt-harmony-release")...
[info] Done updating.
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Packaging /mnt/mesos/sandbox/workspace/harmony-be/sbt-harmony-release/target/scala-2.12/sbt-1.0/sbt-harmony-0.2.26-sources.jar ...
[info] Done packaging.
[info] Wrote /mnt/mesos/sandbox/workspace/harmony-be/sbt-harmony-release/target/scala-2.12/sbt-1.0/sbt-harmony-0.2.26.pom
[info] Compiling 11 Scala sources to /mnt/mesos/sandbox/workspace/harmony-be/sbt-harmony-release/target/scala-2.12/sbt-1.0/classes ...
[info] Done compiling.
[info] Packaging /mnt/mesos/sandbox/workspace/harmony-be/sbt-harmony-release/target/scala-2.12/sbt-1.0/sbt-harmony-0.2.26.jar ...
[info] Done packaging.
[info] 	published sbt-harmony to https://xxx.jfrog.io/yyy/harmony-sbt-plugins/zzz/harmony/sbt-harmony_2.12_1.0/0.2.26/sbt-harmony-0.2.26.pom
[info] 	published sbt-harmony to https://xxx.jfrog.io/yyy/harmony-sbt-plugins/zzz/harmony/sbt-harmony_2.12_1.0/0.2.26/sbt-harmony-0.2.26..jar
[info] 	published sbt-harmony to https://xxx.jfrog.io/yyy/harmony-sbt-plugins/zzz/harmony/sbt-harmony_2.12_1.0/0.2.26/sbt-harmony-0.2.26.s.jar
[success] Total time: 9 s, completed Oct 2, 2019 8:11:57 PM
[info] Reapplying settings...
[info] Skipping fetching tags from git remotes; to enable, set the system property version.autoFetch=true
[error] scala.MatchError: v0.2.26-1-d2888ba-SNAPSHOT (of class java.lang.String)
[error] 	at com.rallyhealth.sbt.versioning.GitBranchStateTwoReleases.$anonfun$new$3(GitState.scala:46)
[error] 	at com.rallyhealth.sbt.versioning.GitBranchStateTwoReleases.$anonfun$new$3$adapted(GitState.scala:46)
[error] 	at scala.collection.LinearSeqOptimized.exists(LinearSeqOptimized.scala:91)
[error] 	at scala.collection.LinearSeqOptimized.exists$(LinearSeqOptimized.scala:88)
[error] 	at scala.collection.immutable.Stream.exists(Stream.scala:200)
[error] 	at com.rallyhealth.sbt.versioning.GitBranchStateTwoReleases.<init>(GitState.scala:46)
[error] 	at com.rallyhealth.sbt.versioning.GitDriverImpl.<init>(GitDriver.scala:113)
[error] 	at com.rallyhealth.sbt.versioning.GitVersioningPlugin$.$anonfun$buildSettings$9(GitVersioningPlugin.scala:149)