-
Notifications
You must be signed in to change notification settings - Fork 47
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
Allow arbitrary prefixes for tags #158
Conversation
be52464
to
1f752bf
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
# Conflicts: # src/main/scala/sbtdynver/DynVerPlugin.scala # src/test/scala/sbtdynver/RepoStates.scala
6c37494
to
9b3c2ad
Compare
Highlights: * Introduce dropPrefix as a replacement for dropV; * Maintain & fast-fail on incoherence against vTagPrefix; * Introduce a private GitTag subclass instead of anonymous ones; * Use pattern quoting for the custom prefix; * Preserve the semantics of all public API; * also, changed 2 test cases to run 3 times to help me fix the impl;
9b3c2ad
to
e28197a
Compare
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.
Thank you, @eliaslevy and @sideeffffect. I finally spent today reviewing and working on the enhancement. I've squash down the history and everything's passing CI (something's up with the webhook notifications?). Anyways, this is ready to merge. Thank you for the contribution.
Those are great news @dwijnand 🎉 |
Yep, releasing 4.1.0 first thing Monday, if nothing urgent happens. |
This PR builds on top of #62 by @eliaslevy to bring to
sbt-dynver
the ability to work with arbitrary prefixes for git tags.This effectively allows a particular sbt configuration to focus only on a subset of all the tags in the repository.
This is useful when working with multiple projects in one git repository (monorepo-like), when for example some of the projects might not even use
sbt-dynver
or even use sbt or even be written in Scala.The PR is as minimalistic as possible and is backwards compatible, especially with regards to the behavior of
dynverVTagPrefix
.Could you @dwijnand please review this? 🙏