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

ort version does not match what is specified in Cargo.toml #73

Closed
cenwangumass opened this issue Aug 3, 2023 · 1 comment
Closed

ort version does not match what is specified in Cargo.toml #73

cenwangumass opened this issue Aug 3, 2023 · 1 comment

Comments

@cenwangumass
Copy link

I added an old version of ort as dep by using cargo add ort@1.13.3. When running cargo build, it shows that the version that's being built is 1.15.2.

Reproduce:

cargo new test1
cd test1
cargo add ort@1.13.3 # This shows Adding ort v1.13.3 to dependencies.
cargo build # This shows Compiling ort v1.15.2
@decahedron1
Copy link
Member

Specify ort = "=1.13.3" or "~1.13" in Cargo.toml. Cargo treats dependencies as caret requirements by default, meaning "1.13.3" would be interpreted as >=1.13.3,<2, and ort pre-v2 did not account for this in versioning.

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