MarcoIeni / release-plz

Publish Rust crates from CI with a Release PR.
https://release-plz.ieni.dev
Apache License 2.0
792 stars 74 forks source link

`cargo install release-plz` fails to compile #1534

Closed VorpalBlade closed 3 months ago

VorpalBlade commented 3 months ago

Bug description

A repeat of #1489 but with a different dependency. I guess people need to use cargo semver-checks more!

To Reproduce

Steps to reproduce the behavior:

  1. cargo install release-plz (without --locked)
   [...]
   Compiling git-cliff-core v2.4.0
   [...]
   Compiling release_plz_core v0.23.0
error[E0063]: missing fields `message` and `repository` in initializer of `git_cliff_core::release::Release<'_>`
   --> /home/arvid/.cargo/registry/src/index.crates.io-6f17d22bba15001f/release_plz_core-0.23.0/src/changelog.rs:221:56
    |
221 |         let previous = self.previous_version.map(|ver| Release {
    |                                                        ^^^^^^^ missing `message` and `repository`

error[E0063]: missing fields `message` and `repository` in initializer of `git_cliff_core::release::Release<'_>`
   --> /home/arvid/.cargo/registry/src/index.crates.io-6f17d22bba15001f/release_plz_core-0.23.0/src/changelog.rs:230:22
    |
230 |             release: Release {
    |                      ^^^^^^^ missing `message` and `repository`

error[E0063]: missing field `footer` in initializer of `CommitParser`
   --> /home/arvid/.cargo/registry/src/index.crates.io-6f17d22bba15001f/release_plz_core-0.23.0/src/changelog.rs:274:5
    |
274 |     CommitParser {
    |     ^^^^^^^^^^^^ missing `footer`

For more information about this error, try `rustc --explain E0063`.
error: could not compile `release_plz_core` (lib) due to 3 previous errors
error: failed to compile `release-plz v0.3.74`, intermediate artifacts can be found at `/tmp/cargo-install34YD0s`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Expected behavior

Compile and install

Environment

Additional context

MarcoIeni commented 3 months ago

Thanks for reporting. We need to update git-cliff to the latest version