Skip to content

Commit

Permalink
Merge pull request #219 from mkurz/nicer-sbt-dynver-config
Browse files Browse the repository at this point in the history
Nicer sbt-dynver config
  • Loading branch information
mkurz authored Apr 24, 2022
2 parents 4932e48 + 76b1d2b commit 187b204
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 187b204

Please sign in to comment.