kornelski / cargo-deb

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

Consider files only directly inside LIB_SYSTEMD_SYSTEM_DIR to be units #46

Closed WGH- closed 2 years ago

WGH- commented 2 years ago

Without this, "drop-in" configuration files like "foo.service.d/10-override.conf" were erroneously considered units as well, which lead to runtime panics:

thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-deb-1.38.2/src/dh_installsystemd.rs:282:84
kornelski commented 2 years ago

Thanks