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

Dependi fails to identify invalid versions in certain circumstances #112

Open
donottellmetonottellyou opened this issue Aug 23, 2024 · 0 comments
Milestone

Comments

@donottellmetonottellyou

Describe the bug
If the godot crate is set to the invalid version of 0.0.1 (with a lock file having the correct version), it will show a green check next to the version even though it may not even exist.

To Reproduce
Steps to reproduce the behavior:

  1. Make sure dependi has the lock file feature enabled
  2. Create a project depending on godot like this: godot = "0.1.3"
  3. Run cargo build or let dependi generate a lock file
  4. Change the version of the crate to an invalid previous version godot = "0.0.1"
  5. Note the green check, rustup has crashed
  6. Cargo build:
error: failed to select a version for the requirement `godot = "^0.0.1"`
candidate versions found which didn't match: 0.1.3, 0.1.2, 0.1.1

Expected behavior
Dependi should detect when an invalid version exists in the Cargo.toml, even when Cargo.lock is up-to-date.

Screenshots

image

Desktop (please complete the following information):

  • OS: NixOS Linux
  • Version: 24.05

Additional context
Dependi 0.7.8
Related to #15

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

No branches or pull requests

2 participants