Skip to content

git-cliff --bumped-version replaces CHANGELOG.md #1204

@eproxus

Description

@eproxus

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

When running git-cliff --bumped-version it outputs the version into the configured change log output path, overwriting all content.

Steps To Reproduce

  1. Configure the change log output in cliff.toml:
    [changelog]
    output = "CHANGELOG.md"
  2. Add some content to CHANGELOG.md
  3. Run git-cliff --bumped-version
  4. Observe the version getting written to CHANGELOG.md, overwriting all content

Expected behavior

git-cliff --bumped-version should always output the version to standard out.

Screenshots / Logs

No response

Software information

  • Operating system: macOS 15.5
  • Rust version: unknown
  • Project version: 2.9.1

Additional context

git-cliff is installed via Homebrew.

One workaround is git-cliff --bumped-version --output=-. However, adding output = "-" to the [bump] section in cliff.toml does not work.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions