-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
New format option untaggedSuffix
#66
Conversation
appendSnapshot
untaggedSuffix
d4fa410
to
eac2790
Compare
@@ -52,6 +58,28 @@ case class VcsState( | |||
case t => t | |||
} | |||
|
|||
@deprecated("Binary compatibility shim. Use other overload instead.", "mill-vcs-verison after 0.2.0") | |||
private[version] def format( |
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.
Maybe a naive question, but is this needed? With the new change it won't break compat for existing users right because it has a default value?
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.
Typically, you're right, as most Mill plugins are used in build scripts, hence their use site is always recompiled, when the version changes.
But with your new mill-ci-release plugin, we started to have downstream users who depend on binary published artifacts. And there is a high change of really breaking the build, when the user is also explicitly importing both plugins.
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.
Ahhh, so you're saying it's my fault! 😆
Kidding, makes sense.
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.
This is great. Thanks so much for adding this! LGTM
When publishing artifacts to Maven Snapshot repositories, the version needs to end in
-SNAPSHOT
.With this addition, we can automatically add such a suffix, while keeping a unique version based on the last tag.