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

NearestVersionLocator handles DEFAULT_VERSION_PREFIX as 1 character, but it is a string which can be longer than 1 #2

Open
omrzljak opened this issue May 17, 2016 · 0 comments

Comments

@omrzljak
Copy link

We get
`Execution failed for task ':display_version'.

com.github.zafarkhaja.semver.UnexpectedCharacterException (no error message)`

when we use gitflow config
[gitflow "prefix"] feature = feature/ release = release/ hotfix = hotfix/ support = support/ versiontag = v_

This error occurs in NearestVersionLocator because in line
Version version = Version.valueOf(tag.name[ 0 ] == versionPrefix ? tag.name[ 1..-1 ] : tag.name)

implementation compares only first char of the tag name as versionPrefix. In my config I have prefix "v_" which is 2 is string wiht length 2.

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

No branches or pull requests

1 participant