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

prepare release 0.33.1 #1283

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 115 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["rust-tests"]

[package]
name = "rattler-build"
version = "0.33.0"
version = "0.33.1"
authors = ["rattler-build contributors <[email protected]>"]
repository = "https://github.com/prefix-dev/rattler-build"
edition = "2021"
Expand Down Expand Up @@ -142,6 +142,7 @@ rattler_solve = { version = "1.3.1", default-features = false, features = ["reso
rattler_virtual_packages = { version = "1.1.15", default-features = false }
rattler_package_streaming = { version = "0.22.20", default-features = false }
lazy_static = "1.5.0"
reqwest-retry = "0.7.0"

[target.'cfg(not(target_os = "windows"))'.dependencies]
sha2 = { version = "0.10.8", features = ["asm"] }
Expand Down
4 changes: 4 additions & 0 deletions src/tool_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use rattler_networking::{
use rattler_repodata_gateway::Gateway;
use rattler_solve::ChannelPriority;
use reqwest_middleware::ClientWithMiddleware;
use reqwest_retry::{policies::ExponentialBackoff, RetryTransientMiddleware};

use crate::console_utils::LoggingOutputHandler;

Expand Down Expand Up @@ -122,6 +123,9 @@ pub fn reqwest_client_from_auth_storage(
.build()
.expect("failed to create client"),
)
.with(RetryTransientMiddleware::new_with_policy(
ExponentialBackoff::builder().build_with_max_retries(3),
))
.with_arc(Arc::new(AuthenticationMiddleware::new(auth_storage)))
.build())
}
Expand Down
Loading