crate-ci / cargo-release

Cargo subcommand `release`: everything about releasing a rust crate.
Apache License 2.0
1.33k stars 112 forks source link

`cargo release patch` fails with error `object not found - no match for id` #714

Closed mmynk closed 11 months ago

mmynk commented 11 months ago

I'm running the command cargo release --no-confirm --execute patch as part of my CI. It always fails with the error:

Published netlink-tc v0.0.3 at registry `crates-io`
error: object not found - no match for id (<sha>); class=Odb (9)
Error: Process completed with exit code 101.

Even cargo release --no-confirm --execute --no-publish patch fails! I'm probably doing something wrong.

Here's my worflow yml.

Any help would be highly appreciate. Btw, amazing crate, I considered many before settling on this because it was the simplest and most all-rounded one out there!

epage commented 11 months ago

Is the checkout doing a shallow clone? If so, that would cause the history checks and reports to fail.

mmynk commented 11 months ago

Looks so from their documentation, thanks!