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
Given:
A git repository that is having tags that are not related to a version.
$ git tag
0.1.0
1.2.3
simpletag
When:
Resolving the current version
Then:
Caused by: Unexpected character 'LETTER(p)' at position '0', expecting '[DIGIT]'
at com.github.zafarkhaja.semver.VersionParser.consumeNextCharacter(VersionParser.java:516)
at com.github.zafarkhaja.semver.VersionParser.digits(VersionParser.java:448)
at com.github.zafarkhaja.semver.VersionParser.numericIdentifier(VersionParser.java:408)
at com.github.zafarkhaja.semver.VersionParser.parseVersionCore(VersionParser.java:285)
at com.github.zafarkhaja.semver.VersionParser.parseValidSemVer(VersionParser.java:255)
at com.github.zafarkhaja.semver.VersionParser.parseValidSemVer(VersionParser.java:195)
at com.github.zafarkhaja.semver.Version.valueOf(Version.java:265)
at com.github.zafarkhaja.semver.Version$valueOf.call(Unknown Source)
at com.github.amkay.gradle.gitflow.version.NearestVersionLocator$_locate_closure1.doCall(NearestVersionLocator.groovy:101)
at com.github.amkay.gradle.gitflow.version.NearestVersionLocator.locate(NearestVersionLocator.groovy:100)
at com.github.amkay.gradle.gitflow.version.NearestVersionLocator$locate.call(Unknown Source)
at com.github.amkay.gradle.gitflow.strategy.BranchDevelopStrategy.doInfer(BranchDevelopStrategy.groovy:44)
at com.github.amkay.gradle.gitflow.strategy.AbstractStrategy.infer(AbstractStrategy.groovy:58)
at com.github.amkay.gradle.gitflow.strategy.Strategy$infer$0.call(Unknown Source)
at com.github.amkay.gradle.gitflow.version.DelayedVersionWithType.infer(DelayedVersionWithType.groovy:55)
Our need:
We need to be able to appose not-related version tags to commits
Given:
A git repository that is having tags that are not related to a version.
When:
Resolving the current version
Then:
Our need:
We need to be able to appose not-related version tags to commits
Proposed solution:
At line 101 of:
https://github.com/amkay/gradle-gitflow/blob/1dfd896193e9db2d283cc2aba030742203d4780a/src/main/groovy/com/github/amkay/gradle/gitflow/version/NearestVersionLocator.groovy
Handle the exception "ParseException" threw by the method "Version.valueOf" and go to the next tag.
The text was updated successfully, but these errors were encountered: