-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#105 #136
#105 #136
Conversation
versioning/src/main/scala/org/typelevel/sbt/TypelevelVersioningPlugin.scala
Outdated
Show resolved
Hide resolved
versioning/src/main/scala/org/typelevel/sbt/TypelevelVersioningPlugin.scala
Outdated
Show resolved
Hide resolved
versioning/src/main/scala/org/typelevel/sbt/TypelevelVersioningPlugin.scala
Outdated
Show resolved
Hide resolved
versioning/src/main/scala/org/typelevel/sbt/TypelevelVersioningPlugin.scala
Outdated
Show resolved
Hide resolved
versioning/src/main/scala/org/typelevel/sbt/TypelevelVersioningPlugin.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this is looking really good! Just some nits :)
versioning/src/main/scala/org/typelevel/sbt/TypelevelVersioningPlugin.scala
Outdated
Show resolved
Hide resolved
versioning/src/main/scala/org/typelevel/sbt/TypelevelVersioningPlugin.scala
Outdated
Show resolved
Hide resolved
versioning/src/main/scala/org/typelevel/sbt/TypelevelVersioningPlugin.scala
Outdated
Show resolved
Hide resolved
…gPlugin.scala Co-authored-by: Arman Bilge <armanbilge@gmail.com>
…gPlugin.scala Co-authored-by: Arman Bilge <armanbilge@gmail.com>
V(version) match { | ||
case None => | ||
sys.error(s"version must be semver format: $version") | ||
case Some(value) => | ||
if (!(value.isSameSeries(baseV) || value >= baseV)) | ||
sys.error( | ||
s"Your current version $version cannot be less than tlBaseVersion $baseV") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I totally missed this: actually, we need to move this check outside of the current { }
. Otherwise it's missing the current tags which are read here:
sbt-typelevel/versioning/src/main/scala/org/typelevel/sbt/TypelevelVersioningPlugin.scala
Line 66 in b3b9fc2
var version = getTaggedVersion(git.gitCurrentTags.value).map(_.toString).getOrElse { |
Thanks for working on this! :) |
Fail if tag is older than base version #105