Skip to content

cider bump patch --pre=beta errors for version 0.0.16-beta but it should should bump to 0.0.17-beta #92

Description

@MarkOSullivan94

Summary

When running cider bump patch --pre=beta from a project currently at version 0.0.16-beta, the command fails with the error The next version must be higher than the current one.. I expected the version to be bumped to 0.0.17-beta.

Reproduction steps

  1. In a project using cider with current version set to 0.0.16-beta (e.g., package.json or cider config).
  2. Run: cider bump patch --pre=beta
  3. Observe the error: The next version must be higher than the current one.

What happened

  • cider bump patch --pre=beta returns an error and does not update the version.
  • cider bump minor --pre=beta works as expected and updates 0.0.16-beta0.1.0-beta.

Expected behavior

  • cider bump patch --pre=beta should update 0.0.16-beta0.0.17-beta.

Notes / Additional context

  • Current version used for reproduction: 0.0.16-beta.
  • Command that succeeds: cider bump minor --pre=beta0.1.0-beta.
  • This looks like a problem with handling prerelease versions when calculating the next patch version — the next prepatch version should be greater than the current prerelease.

Suggested info for maintainers

  • Possible places to check: logic that compares SemVer versions and handles prerelease identifiers when computing the next version for patch bumps.
  • If you need more information I can provide the exact project config or run additional debug output.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions