We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
lasso
A few days ago ahash version 0.7.x was yanked from crates.io.
ahash
0.7.x
Now the ahash 0.7.6 crate shows this message:
This crate has been yanked, but it is still available for download for other crates that may be depending on it.
Bastion depends on lasso that depends on hashbrown that depends on ahash.
hashbrown
The file to be edited: https://github.com/bastion-rs/bastion/blob/master/src/bastion/Cargo.toml
Replace lasso dependency with a newer version https://crates.io/crates/lasso/versions
I guess the solution is to update from 0.6 to 0.7, so the line is going to be this:
0.6
0.7
lasso = { version = "0.7", features = ["multi-threaded"] }
I encountered this problem when I tried to build a docker image with my rust project.
My cargo.toml
cargo.toml
bastion = { version = "0.4.5", features = ["tokio-runtime"] }
The error I'm getting:
=> [builder 2/7] WORKDIR /my_builddir 0.2s => [builder 3/7] COPY ./loda-rust-core loda-rust-core 0.0s => [builder 4/7] COPY ./loda-rust-cli loda-rust-cli 0.0s => [builder 5/7] COPY ./loda-rust-web loda-rust-web 0.1s => [builder 6/7] COPY ./Cargo.toml Cargo.toml 0.0s => ERROR [builder 7/7] RUN cargo build --config net.git-fetch-with-cli=true --release -p loda-rust-cli 2.3s ------ > [builder 7/7] RUN cargo build --config net.git-fetch-with-cli=true --release -p loda-rust-cli: 0.678 Updating crates.io index 2.318 error: failed to select a version for the requirement `ahash = "=0.7.4"` 2.318 candidate versions found which didn't match: 0.8.5, 0.8.4, 0.4.1, ... 2.318 location searched: crates.io index 2.318 required by package `loda-rust-cli v2023.10.23 (/my_builddir/loda-rust-cli)` 2.318 perhaps a crate was updated and forgotten to be re-vendored? ------ arc.Dockerfile:10 -------------------- 8 | COPY ./loda-rust-web loda-rust-web 9 | COPY ./Cargo.toml Cargo.toml 10 | >>> RUN cargo build --config net.git-fetch-with-cli=true --release -p loda-rust-cli 11 | 12 | #################################################################################################### -------------------- ERROR: failed to solve: process "/bin/sh -c cargo build --config net.git-fetch-with-cli=true --release -p loda-rust-cli" did not complete successfully: exit code: 101
My work around.
Update cargo.toml so it uses old versions.
ahash = "0.7.4" hashbrown = "0.11.2" lasso = "0.6.0"
Make use of Cargo.lock when building my docker image. I inserted --locked into the cargo build command.
Cargo.lock
--locked
cargo build
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem
A few days ago
ahash
version0.7.x
was yanked from crates.io.Now the ahash 0.7.6 crate shows this message:
Bastion depends on
lasso
that depends onhashbrown
that depends onahash
.Solution
The file to be edited:
https://github.com/bastion-rs/bastion/blob/master/src/bastion/Cargo.toml
Replace
lasso
dependency with a newer versionhttps://crates.io/crates/lasso/versions
I guess the solution is to update from
0.6
to0.7
, so the line is going to be this:I encountered this problem when I tried to build a docker image with my rust project.
My
cargo.toml
The error I'm getting:
My work around.
Update
cargo.toml
so it uses old versions.Make use of
Cargo.lock
when building my docker image. I inserted--locked
into thecargo build
command.The text was updated successfully, but these errors were encountered: