You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently ran into a issue with multiple branches. I'll try to keep the workflow as simple as possible below.
I have a main branch, but before creating a release I created a branch 1.0 and added a tag v1.0.0, then in the same branch I added a tag v1.0.1 - the changelog is built correctly, but after I merged all the changes into the main branch to prepare the 1.1 branch - the process is broken.
git-cliff cannot correctly determine the next version with the command git-cliff --bumped-version
Steps To Reproduce
To make the process as simple as possible I did not use a configuration file, however I had previously tried various methods to achieve correct operation, but I did not succeed
git checkout -b "1.0"
echo "1.0.0" > test.txt
git add "test.txt"
git commit -m "chore: release v1.0.0"
git-cliff --bumped-version
WARN git_cliff > "cliff.toml" is not found, using the default configuration.
WARN git_cliff_core::config > No releases found, using 0.1.0 as the next version.
0.1.0
git tag v1.0.0
git-cliff --bumped-version
WARN git_cliff > "cliff.toml" is not found, using the default configuration.
WARN git_cliff > There is nothing to bump.
v1.0.0
echo "1.0.1" > test.txt
git add "test.txt"
git commit -m "chore: release v1.0.1"
git-cliff --bumped-version
WARN git_cliff > "cliff.toml" is not found, using the default configuration.
v1.0.1
git tag v1.0.1
git-cliff --bumped-version
WARN git_cliff > "cliff.toml" is not found, using the default configuration.
WARN git_cliff > There is nothing to bump.
v1.0.1
git checkout main
echo "some changes" > test.txt
git add "test.txt"
git commit -m "chore: test"
git-cliff --bumped-version
WARN git_cliff > "cliff.toml" is not found, using the default configuration.
v1.0.2 <<<-----
git merge 1.0
git log --oneline
4a61d4e (HEAD -> main, 1.1) Merge branch '1.0'
e877f38 chore: test
e5ffe3b (tag: v1.0.1, 1.0) chore: release v1.0.1
dbfba27 (tag: v1.0.0) chore: release v1.0.0
2034462 chore: initial commit
git tag --list
v1.0.0
v1.0.1
git-cliff --bumped-version
WARN git_cliff > "cliff.toml" is not found, using the default configuration.
WARN git_cliff > There is nothing to bump.
v1.0.1 <<<-----
git checkout -b 1.1
git log --oneline
4a61d4e (HEAD -> 1.1, main) Merge branch '1.0'
e877f38 chore: test
e5ffe3b (tag: v1.0.1, 1.0) chore: release v1.0.1
dbfba27 (tag: v1.0.0) chore: release v1.0.0
2034462 chore: initial commit
git tag --list
v1.0.0
v1.0.1
git-cliff --bumped-version
WARN git_cliff > "cliff.toml" is not found, using the default configuration.
WARN git_cliff > There is nothing to bump.
v1.0.1 <<<-----
Expected behavior
The correct next version should be 1.0.2, not 1.0.1
git-cliff --bumped-version
WARN git_cliff > "cliff.toml" is not found, using the default configuration.
WARN git_cliff > There is nothing to bump.
v1.0.2 <<<-----
Screenshots / Logs
No response
Software information
Operating system: Windows
Rust version: -
Project version: 2.8.0
Additional context
No response
The text was updated successfully, but these errors were encountered:
Thanks for reporting! The bump mechanism was designed with a single branch in mind so there might be some edge cases when working with multiple branches.
Maybe try out with --topo-order flag for ordering the tags.
Is there an existing issue for this?
Description of the bug
Hi!
Thanks for this great project!
I recently ran into a issue with multiple branches. I'll try to keep the workflow as simple as possible below.
I have a
main
branch, but before creating a release I created a branch1.0
and added a tagv1.0.0
, then in the same branch I added a tagv1.0.1
- the changelog is built correctly, but after I merged all the changes into the main branch to prepare the1.1
branch - the process is broken.git-cliff cannot correctly determine the next version with the command
git-cliff --bumped-version
Steps To Reproduce
To make the process as simple as possible I did not use a configuration file, however I had previously tried various methods to achieve correct operation, but I did not succeed
Expected behavior
The correct next version should be 1.0.2, not 1.0.1
Screenshots / Logs
No response
Software information
Additional context
No response
The text was updated successfully, but these errors were encountered: