Skip to content

Shouldn't releaseVersion always be ReleaseVersion.fromCompatibility(BinaryAndSourceCompatible) for sbt-release? #200

@steinybot

Description

@steinybot

sbt-release has the setNextVersion release step which is where we loosly decide what the next version should be. For example, releasing 1.0.0 will set the next version to 1.0.1-SNAPSHOT. version is always the next version to release (with a SNAPSHOT qualifier) which is a requirement for MiMa.

We run versionPolicyCheck in CI so any PR with breaking changes needs to:
a) set versionPolicyIntention to something else such as BinaryCompatible
b) and bump the version such as 1.1.0-SNAPSHOT

Now if we were to run release in this state then ReleaseVersion.fromCompatibility(versionPolicyIntention.value) is going to bump the minor again and we will end up releasing 1.2.0 instead of 1.1.0.

So shouldn't releaseStepTask(setAndCommitNextCompatibilityIntention) appear before setReleaseVersion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions