gitlab-cargo-shim icon indicating copy to clipboard operation
gitlab-cargo-shim copied to clipboard

Fix metadata version mismatch

Open alexheretic opened this issue 7 months ago • 1 comments

The current code picks a Package from the metadata by name. However, it is possible to have multiple versions of the package we are looking for in the metadata. In this case we may be looking for crate "foo" version 0.2.0 and find version 0.1.0 instead (and then cache that).

This PR fixes metadata::transform to find using name & version (if possible). And to not use cached values if the versions don't match.

I also updated the dependencies with required some more pinning to get thrussh to work.

alexheretic avatar Jul 05 '24 13:07 alexheretic