gitlab-cargo-shim
gitlab-cargo-shim copied to clipboard
Fix metadata version mismatch
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.