tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Cargo.lock change impacting url2pkg

Looks like the format of Cargo.lock changed from having a single
[metadata] section with all the checksums to a new format where the
checksums are included in each package section
( has more info). As of
commit b9dfc09421b9f8cd19f4abbffe63c8bb48744ab6, ncspot started using
that new format.

Looking at Adjuster.adjust_cargo() in url2pkg, only the old format is
checked. I'm not sure of a good way to handle the new format cleanly, or
if others are already aware of the change to the lock file.

In the meantime, I tried running "make print-cargo-depends" and that
seemed to work fine with the version you have committed. Might be a
usable workaround for now?

On Mon, Oct 12, 2020 at 12:17:26PM +0000, voidpin wrote:
> Cargo.lock format change making url2pkg unable to generate CARGO_CRATE_DEPENDS
> list.
> See
> I've managed to update ncspot by generating the list from a few commits prior
> to release and adjusting the versions according to upstream Cargo.lock file.
> Although, going forward would be good to fix the issue.
> I have no clue how to handle this. Anyone?
> Sent with ProtonMail Secure Email.

Home | Main Index | Thread Index | Old Index