On Thu, Dec 3, 2026, at 1:30 AM, Daniel Richard G. wrote:
> On Wed, 2026 Dec  2 18:59-05:00, kpcyrd wrote:
>>
>> The Cargo.lock file is a build input that Debian explicitly doesn't
>> use. There's some risk of vulnerability scanners incorrectly picking
>> up those files and reporting problems that aren't present in Debian.
>
> The Cargo.lock file is typically present in the orig source tarball. The
> request here is not to distribute same any further than it is now, only
> to not get rid of it within the context of the unpacked source tree.

Nit: it's not gone from the unpacked source tree, just from the source
tree once the build has started.

I see the argument for keeping it around (moved away) and restoring it
in clean, if just for idempotency reasons.

>> Keeping that in mind, what would be a usecase that would require
>> putting the file into the binary package, that can't be satisfied with
>> reading it from the source .tar.gz?
>
> Nothing new in the binary packages.
>
> Upstream lock files are of particular interest on the Ubuntu side of
> things, where Rust dependencies are more likely to be vendored in rather
> than satisfied by not-perfectly-matching packaged versions.

That being said - if you vendor crates, you don't need to use dh-cargo,
since the only purpose of dh-cargo is to provide non-vendored crates,
and set cargo up to use them ;) in that situation, you probably want
to just use the cargo wrapper (that dh-cargo calls) directly..

Fabian

Reply via email to