Package: dh-cargo
Version: 34

In /usr/share/perl5/Debian/Debhelper/Buildsystem/cargo.pm, in sub
configure(), there is a

    rm_files("Cargo.lock");

call. The lock file being deleted here is typically the upstream one.
This file may be undesirable when building against system crates, but it
still provides information that may be useful to the package maintainer.
(To get it back, I typically have to unpack the source again.) I would
also note that the file is not restored by a "d/rules clean" action.

Instead of deleting the file, I would suggest moving it out of the way
with a rename, to something like "Cargo.lock.upstream". This should
serve the original purpose of deletion, without throwing away any
information. For completeness, dh_clean could even rename it back.

Reply via email to