Skip to content

Commit

Permalink
Fail if tag is older than base version #105
Browse files Browse the repository at this point in the history
  • Loading branch information
osleonard committed Feb 3, 2022
1 parent c7e1988 commit 48d21f9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ object TypelevelVersioningPlugin extends AutoPlugin {
else if (baseV.isSameSeries(previous))
Some(previous)
else
None
sys.error(s"Your tlBaseVersion $baseV is older than the latest tag $previous")

}

var version = latestInSeries.fold(tlBaseVersion.value)(_.toString)
Expand Down

0 comments on commit 48d21f9

Please sign in to comment.