-
Notifications
You must be signed in to change notification settings - Fork 3
Configure cargo
to use the sparse
protocol for registry access
#38
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
Labels
improvement
This issue or pull request will add or improve functionality, maintainability, or ease of use
Comments
mcdonnnj
added a commit
that referenced
this issue
May 23, 2024
In the move from Alpine Linux 3.17 to 3.18 we also moved from Cargo 1.64.0 to 1.71.1. This takes us past Rust 1.68 (since Cargo uses the same version) which introduced sparse registries and as a result this should resolve #38.
mcdonnnj
added a commit
that referenced
this issue
Jun 24, 2024
In the move from Alpine Linux 3.17 to 3.18 we also moved from Cargo 1.64.0 to 1.71.1. This takes us past Rust 1.68 (since Cargo uses the same version) which introduced sparse registries and as a result this should resolve #38.
mcdonnnj
added a commit
that referenced
this issue
Aug 26, 2024
In the move from Alpine Linux 3.17 to 3.18 we also moved from Cargo 1.64.0 to 1.71.1. This takes us past Rust 1.68 (since Cargo uses the same version) which introduced sparse registries and as a result this should resolve #38.
mcdonnnj
added a commit
that referenced
this issue
Aug 27, 2024
In the move from Alpine Linux 3.17 to 3.18 we also moved from Cargo 1.64.0 to 1.71.1. This takes us past Rust 1.68 (since Cargo uses the same version) which introduced sparse registries and as a result this should resolve #38.
mcdonnnj
added a commit
that referenced
this issue
Aug 28, 2024
In the move from Alpine Linux 3.17 to 3.18 we also moved from Cargo 1.64.0 to 1.71.1. This takes us past 1.68, which introduced sparse registries, and 1.70, which made `sparse` the default protocol to use with crates.io (the default registry). This resolves #38, and based on testing it also resolves #32.
mcdonnnj
added a commit
that referenced
this issue
Aug 29, 2024
In the move from Alpine Linux 3.17 to 3.18 we also moved from Cargo 1.64.0 to 1.71.1. This takes us past 1.68, which introduced sparse registries, and 1.70, which made `sparse` the default protocol to use with crates.io (the default registry). This resolves #38, and based on testing it also resolves #32.
6 tasks
mcdonnnj
added a commit
that referenced
this issue
Oct 7, 2024
In the move from Alpine Linux 3.17 to 3.18 we also moved from Cargo 1.64.0 to 1.71.1. This takes us past 1.68, which introduced sparse registries, and 1.70, which made `sparse` the default protocol to use with crates.io (the default registry). This resolves #38, and based on testing it also resolves #32.
mcdonnnj
added a commit
that referenced
this issue
Oct 7, 2024
In the move from Alpine Linux 3.17 to 3.18 we also moved from Cargo 1.64.0 to 1.71.1. This takes us past 1.68, which introduced sparse registries, and 1.70, which made `sparse` the default protocol to use with crates.io (the default registry). This resolves #38, and based on testing it also resolves #32.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
improvement
This issue or pull request will add or improve functionality, maintainability, or ease of use
💡 Summary
We should configure Cargo to use the sparse protocol in the Docker image.
Motivation and context
We currently install the Rust tool-chain (including Cargo) to support building the cryptography package for image platforms that do not have a pre-built wheel available. We currently must configure Cargo to use the git command line instead of the internal [libgit2] client due to failures observed. When the
sparse
protocol is available we should switch to that as it is expected to be more performant in CI situations (like this) in addition to the other, less relevant, improvements.Implementation notes
The Cargo configuration file we copy into the image should be updated to direct Cargo to use the
sparse
protocol for index retrieval. Support is not expected until the Rust1.68
release per rust-lang/cargo#9069 (comment).Acceptance criteria
sparse
protocol for index retrievalThe text was updated successfully, but these errors were encountered: