kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
432 stars 52 forks source link

Use absolute path for package readme #62

Closed orhun closed 1 year ago

orhun commented 1 year ago

While running cargo-deb for git-cliff, I got the following error:

$ cargo-deb  --strip --manifest-path git-cliff/Cargo.toml -v
cargo-deb: unable to read extended description from file: ../README.md
  because: No such file or directory (os error 2)

This is due to git-cliff being a workspace package and pointing out to a readme file in a parent directory:

[package]
readme = "../README.md"

This PR fixes this issue by using an canonicalized absolute path for readme file.

kornelski commented 1 year ago

These paths also break Cargo (it fails to package the readme), so I don't intend to support them. Use a symlink instead.