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 04afeed commit db31486
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ object TypelevelVersioningPlugin extends AutoPlugin {
.flatMap { previous =>
if (previous > baseV)
sys.error(s"Your tlBaseVersion $baseV is behind the latest tag $previous")
else if (baseV.isSameSeries(previous))
Some(previous)
else if (!baseV.isSameSeries(previous))
sys.error(s"Your tlBaseVersion $baseV has to be same with latest tag $previous")
else
None
Some(previous)
}

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

0 comments on commit db31486

Please sign in to comment.