-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Minor versions that exceed x.x.10 incorrectly output when using --current flag #124
Comments
Having the same problem with the |
It turns out there is actually an integer overflow on this line when git-cliff/git-cliff/src/lib.rs Line 205 in 0c7769b
But it is implicit because Now onto the actual problem: As a solution, you should use I hope this helps 🐻 |
This is a workaround due to orhun/git-cliff#124
With the upcoming release, This is a breaking change so I thought I'd make this clear beforehand 🐻 |
For details refer to - orhun/git-cliff#124 - orhun/git-cliff#129
FYI @orhun: I did some investigation with @shmpwk.
How to reproduce$ cd /tmp
$ git clone https://github.com/rust-lang/git2-rs
$ cd git2-rs
$ cargo build --examples
$ cd ../
$ git clone https://github.com/autowarefoundation/autoware-github-actions.git
$ cd autoware-github-actions
$ ../git2-rs/target/debug/examples/tag --list
v1
v1.0.0
v1.1.0
v1.1.1
v1.10.0
v1.10.1
v1.11.0
v1.11.1
v1.12.0
v1.13.0
v1.14.0
v1.15.0
v1.15.1
v1.15.2
v1.16.0
v1.16.1
v1.17.0
v1.18.0
v1.19.0
v1.2.0
v1.20.0
v1.21.0
v1.21.1
v1.22.0
v1.23.0
v1.24.0
v1.25.0
v1.25.1
v1.25.2
v1.25.3
v1.25.4
v1.3.0
v1.3.1
v1.3.2
v1.3.3
v1.3.4
v1.3.5
v1.4.0
v1.5.0
v1.6.0
v1.6.1
v1.7.0
v1.7.1
v1.8.0
v1.8.1
v1.8.2
v1.8.3
v1.9.0 |
@orhun Do you know whether |
FYI: Also, I'll leave a note for future reference. $ git cliff --current --topo-order
...
ERROR git_cliff > Changelog error: `No suitable tags found. Maybe run with '--topo-order'?` This is because the new local tag isn't listed in ❯ git tag v1.1.2
❯ ../git2-rs/target/debug/examples/tag --list | head
v1.1.2
v1
v1.0.0
v1.1.0
v1.1.1
❯ git gc
❯ ../git2-rs/target/debug/examples/tag --list | head
v1
v1.0.0
v1.1.0
v1.1.1
v1.1.2 On GitHub Actions, this won't happen because the repository is cloned with |
Describe the bug
When using tags such as v0.1.8 and v0.1.9, version notes are correctly output when using the --current flag. However, when the tag is v0.1.10, the changelog will include all notes when using the --current flag, not just the current tag.
To Reproduce
Steps to reproduce the behavior:
git-cliff --current
outputs correct changeloggit-cliff --current
outputs both v0.1.9 and v0.1.10Expected behavior
Only v0.1.10 release notes are displayed.
Screenshots/Logs
If applicable, add screenshots to help explain your problem.
System (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: