Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix metadata version mismatch #89

Merged
merged 2 commits into from
Aug 26, 2024
Merged

Conversation

alexheretic
Copy link
Contributor

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
Copy link
Contributor Author

@w4 any issue with this fix?

@w4 w4 merged commit 9a5a1af into w4:main Aug 26, 2024
7 checks passed
@w4
Copy link
Owner

w4 commented Aug 26, 2024

Thanks for the fix

@alexheretic alexheretic deleted the fix-metadata-version-mismatch branch September 1, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants