From 673d917f26570196ba3eb4f3b62f7dd769197042 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Sun, 24 Apr 2022 22:38:41 +0200 Subject: [PATCH] Nicer sbt-dynver config --- build.sbt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build.sbt b/build.sbt index 7949cc2a..57794570 100644 --- a/build.sbt +++ b/build.sbt @@ -42,11 +42,7 @@ ThisBuild / dynverTagPrefix := "" // Sanity-check: assert that version comes from a tag (e.g. not a too-shallow clone) // https://github.com/dwijnand/sbt-dynver/#sanity-checking-the-version Global / onLoad := (Global / onLoad).value.andThen { s => - val v = version.value - if (dynverGitDescribeOutput.value.hasNoTags) - throw new MessageOnlyException( - s"Failed to derive version from git tags. Maybe run `git fetch --unshallow`? Version: $v" - ) + dynverAssertTagVersion.value s }