diff --git a/build.sbt b/build.sbt index c078e9d..e78359f 100644 --- a/build.sbt +++ b/build.sbt @@ -6,11 +6,7 @@ ThisBuild / dynverVTagPrefix := false // 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 }