question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Manually bump entire version, not just manually specify which part to increment

See original GitHub issue

The docs state that the version can be manually bumped but I believe this is incorrect as there’s no other mention of this in the docs or in the CLI help beyond --increment {MAJOR,MINOR,PATCH} which is merely specifying the part to auto-increment.

Why do I want to manually specify the version to bump to? Well, I don’t but unfortunately, dev versions are not supported - but I still want to make use of commitizen’s version-updating inside of files. Otherwise, I will need to use a separate tool in conjunction, such as bumpversion.

I want to be able to do cz bump 1.0.1 for example (optional positional arg or --manual <foo> option would be fine).

A question on this though - whilst commitizen does not support dev versions, will it still be able to successfully parse a PEP440-compatible version that includes a dev version, for the sake of bumping? I.e. will commitizen be able to bump 1.0.1.dev0+foo.bar.baz to 1.0.2 or 1.1.0 etc.?

And the ultimate related question - is there any planned support for dev versions?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:23 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
jakob-kellercommented, Sep 18, 2022

I would also love to see this feature implemented!

1reaction
adamcunnington-gdtcommented, Oct 6, 2021

Thanks. To your last point, you are right, #150 does relate to that. I answered my own question there though - I tried to see if I could bump a PEP440-compatible version to a SemVer-compatible version and that works at least - so I can’t use commitizen to create a .devN+… version, but it can at least read it when it comes to regex replace to bump with a release version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Version Incrementing - GitVersion
Semantic Versioning is all about releases, not commits or builds. This means that the version only increases after you release, this directly conflicts...
Read more >
How to Increment Version and Build Numbers with fastlane
The iOS and Android compiler encode these values into the app binaries, reading the version and build numbers from certain project files. Both ......
Read more >
Bump - Commitizen
The version is bumped automatically based on the commits. The commits should follow the rules of the committer to be parsed correctly. It...
Read more >
Managing Version Numbers with Fastlane - Ben Scheirman
Bumping the Version Manually. If you just want to increment one of the version components you can do something like this: %w{major minor...
Read more >
Version increment using gradle task - Stack Overflow
Here's a custom task for version bumps in Gradle (Android project): ... and the patch part of the version is just a number...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found