kornelski / cargo-deb

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

Fix --separate-debug-symbols #82

Closed drbrain closed 1 year ago

drbrain commented 1 year ago

Previously cargo-deb attempted to add the files with debug symbols by referencing the stripped executable path. The debug symbols do not live alongside the stripped executables so this always failed.

Now cargo-deb uses the original executable paths to determine the location of the debug symbols.

(There's probably a better way to do this, but I'm not skilled enough to figure out how to use collect() with the parallel iterator.)

kornelski commented 1 year ago

Is it possible to write a test for it? It's likely I'll break it again otherwise.

drbrain commented 1 year ago

I'll try!

kornelski commented 1 year ago

Thank you

drbrain commented 1 year ago

Actual test added in #83, sorry! 🙇🏻‍♂️