Skip to content
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

Merged
merged 10 commits into from
Feb 10, 2022
Merged

#105 #136

merged 10 commits into from
Feb 10, 2022

Conversation

osleonard
Copy link
Contributor

@osleonard osleonard commented Feb 3, 2022

Fail if tag is older than base version #105

Copy link
Member

@armanbilge armanbilge left a 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 :)

osleonard and others added 3 commits February 4, 2022 04:40
@armanbilge armanbilge linked an issue Feb 4, 2022 that may be closed by this pull request
Comment on lines +88 to +95
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")
}
Copy link
Member

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:

var version = getTaggedVersion(git.gitCurrentTags.value).map(_.toString).getOrElse {

@armanbilge
Copy link
Member

Thanks for working on this! :)

@armanbilge armanbilge merged commit b3b9fc2 into typelevel:series/0.4 Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fail if tag is older than base version
2 participants