]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cargo-update-recipe-crates: force name overrides
authorFrederic Martinsons <frederic.martinsons@gmail.com>
Fri, 31 Mar 2023 05:45:27 +0000 (07:45 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 1 Apr 2023 10:36:24 +0000 (11:36 +0100)
commit1795e98a04ad09b011afcc7cc3bf6dc49475b19a
tree3f31d2b7d7b8af651b22bd689a6340a7ae644bfe
parent409e045f96f69877de6f36ed14c5c19a9cb74eaf
cargo-update-recipe-crates: force name overrides

A project can have multiple Cargo.lock (provides
multiple binaries for example) and each one can
depends on differenct version of the same crates.
Even within the same Cargo.lock file, it is possible
to have different version of same crates.

To avoid conflicts, override the name with the version
for all crates checksum

Moreover, when searching for Cargo.lock, we should ignore
specific dir like .git (no use to walk down there) and .pc
(because it can have a Cargo.lock if this file was patched)

Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cargo-update-recipe-crates.bbclass