projg2 / pycargoebuild

A generator for Rust/Cargo ebuilds written in Python
GNU General Public License v2.0
25 stars 6 forks source link

cramjam: wrong `Cargo.lock` used? #25

Open mgorny opened 8 months ago

mgorny commented 8 months ago

It seems that in cramjam there are Cargo.lock files with conflicting declarations all over the place but Cargo seems to be using the one in workspace directory.

mgorny commented 8 months ago

From a quick glance at cargo code, it seems to use Cargo.lock from workspace root indeed. I suppose our logic needs to be rewritten to look for workspace root independently of Cargo.lock, and use that to determine Cargo.lock location.