-
-
Notifications
You must be signed in to change notification settings - Fork 281
[BUG] Bump failes if Changelog exists #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey, thanks for reporting. I tried reproducing your behavior but I couldn't. I've used cz versions >2.14 The changelog is generated without problems, did you solve it already? One potential solution could be to remove the changelog, recrate using it I'm gonna try adding a more descriptive error message soon. |
using
|
Sorry it's not clear to me. What should I look for in those recordings? From what I gather it's working as expected, maybe I'm missing some detail. Both seems fine to me 🤔 |
The behavior changes when deleting the (the message was The second recording includes applying your fix idea of using I will try to create a reproduceable "bugged" environment for you to play arround with if you can wait a few days |
Yes, but removing the CHANGELOG creates a git change:
bump will include staged and not staged changes, and it will create a commit. So if you inspect that "bump" commit, it will include the removal of the CHANGELOG |
Not really it "regenerated" the CHANGELOG (see : git-kraken commit screenshot). Which is favorable. And as you can see in the additions to the Changelog there are indeed commits which it cant find if the Changelog exists. But i understand that this is not directly correlated to this GH issue so i will try to create a reproduceable environment to enable you to see the behaviour of the root issue |
I believe I'm seeing very similar behavior, and I believe this only happens when the last version is a pre-release.
The last line would fail with I'm using Let me know if this is reproducible/helpful! |
Hi @phildong , thanks for reporting. I just confirm it's reproducible on my machine. |
Description
When i run
cz bump
it fails unless i delete theCHANGELOG.md
generated by the last bump. While the version is bumped and all files are changed in regard to the version in there, the commit and tag isn't createdSteps to reproduce
45d5049d69ee6c0d3a5b879caa619d1cab58f575
cz bump
CHANGELOG.md
cz bump
againCurrent behavior
Desired behavior
A clearer message whats going wrong or it just working.
Environment
The text was updated successfully, but these errors were encountered: