Reckon 0.13.2 incorrectly infers the release (final
) version if the HEAD
revision is already tagged
#46
Labels
good first issue
Good for newcomers
PR #45 introduced version inference using the outdated version 0.13.2 of the ajoberstar/reckon Gradle plug-in. Version 0.13.2 is the last one compatible with Java 8.
Yet, the plug-in is unsuitable for performing a release by merely pushing a tag, using the
release.yml
workflow.Scenario A
Consider the
HEAD
revision is not tagged, and one of the previous revisions has thev1.0.0
tag. In this case,will correctly increment the version and return
1.0.1
.Scenario B
Consider the
HEAD
revision is already taggedv1.0.1
. Now,will increment this very version and return
1.0.2
instead of1.0.1
. This means that the tag should be only created by Reckon itself, on the server side, as a part of the release-and-publish workflow, in a single Gradle invocation (./gradlew -Preckon.scope=... -Preckon.stage=final publish reckonTagPush
). Gradle targets should be built in this very order:publish
reckonTagPush
This line from the documentation is outright wrong:
Further reading:
The text was updated successfully, but these errors were encountered: