You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Regex does not allow using a prefix like v1.0.0.
What did you want to happen?
I would like to prefix my releases with v1.0.0 and use 1.0.0 as the version.
Prefixing a release with v + semantic versioning is recommended by Gitlab.
Is there a way to override the regex, or could you consider adding the possibility to use v1.0.0 instead of [email protected] ?
The text was updated successfully, but these errors were encountered:
I would propose even more broadly that having a restriction at all on what the prefix can be is unnecessary. Why restrict how people name their git tags?
EDIT: Looking at the code and tests in this repo it seems the widely used prefix "v" for version tags has been very deliberately forbidden. If anybody knows why then I would be very interested in hearing the reasoning behind this decision.
FWIW, I'm using this workaround for tags following the pattern name/v0.0.1:
// only populate the version from the git tag if it hasn't been setif (project.version.toString() =="unspecified") {
apply(plugin ="com.palantir.git-version")
val gitVersion: groovy.lang.Closure<String> by extra
val versionWithV = gitVersion(mapOf("prefix" to "${project.name}/"))
// strip the leading v from the version
version = versionWithV.replace("v", "")
}
What happened?
The Regex does not allow using a prefix like v1.0.0.
What did you want to happen?
I would like to prefix my releases with v1.0.0 and use 1.0.0 as the version.
Prefixing a release with v + semantic versioning is recommended by Gitlab.
Is there a way to override the regex, or could you consider adding the possibility to use v1.0.0 instead of [email protected] ?
The text was updated successfully, but these errors were encountered: