Skip to content

Commit

Permalink
chore: prepare release 0.33.1 (#1283)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Dec 23, 2024
1 parent faf5d89 commit f9dbe5e
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 26 deletions.
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

0 comments on commit f9dbe5e

Please sign in to comment.