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

What to do if a cargo dependency requires a newer rust-toolchain than rust-toolchain.toml is describing? #12

Closed
dionysius opened this issue Jun 3, 2024 · 4 comments

Comments

@dionysius
Copy link
Owner

Currently vaultwarden v1.35.0 can't be built because it still has the toolchain listed for 1.76.0 in its rust-toolchain.toml

buildpackage will fail with an error similar:

package migrations_internals v2.2.0 cannot be built because it requires rustc 1.78.0 or newer, while the currently active rustc version is 1.76.0

@dionysius
Copy link
Owner Author

Still digging through docs, but at a first glance cargo install seems not to use the package lock. Which explains the version inconsistencies for now. Still digging

@dionysius
Copy link
Owner Author

dionysius commented Jun 3, 2024

Found the fix, was just a --locked option for cargo install needed. You can use branch main or tag debian/1.30.5-2 for your build

@dionysius
Copy link
Owner Author

@Artim96 ^

@Artim96
Copy link

Artim96 commented Jun 3, 2024

Package built without any further problems. Thanks!

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