You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by md...@apache.org on 2022/11/09 13:50:37 UTC
[incubator-pekko-connectors] branch main updated: Don't quit sbt on dynver git tag check failure
This is an automated email from the ASF dual-hosted git repository.
mdedetrich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-connectors.git
The following commit(s) were added to refs/heads/main by this push:
new 2d053770 Don't quit sbt on dynver git tag check failure
2d053770 is described below
commit 2d0537701c4ea8ec723c7c26804258da5ca0a462
Author: Matthew de Detrich <ma...@aiven.io>
AuthorDate: Wed Nov 9 13:34:31 2022 +0100
Don't quit sbt on dynver git tag check failure
---
build.sbt | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/build.sbt b/build.sbt
index 9d437f26..139e3978 100644
--- a/build.sbt
+++ b/build.sbt
@@ -465,9 +465,10 @@ def internalProject(projectId: String, additionalSettings: sbt.Def.SettingsDefin
Global / onLoad := (Global / onLoad).value.andThen { s =>
val v = version.value
+ val log = sLog.value
if (dynverGitDescribeOutput.value.hasNoTags)
- throw new MessageOnlyException(
- s"Failed to derive version from git tags. Maybe run `git fetch --unshallow`? Derived version: $v"
+ log.error(
+ s"Failed to derive version from git tags. Maybe run `git fetch --unshallow` or `git fetch upstream` on a fresh git clone from a fork? Derived version: $v"
)
s
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org