Skip to content

Commit a0f9dcb

Browse files
authored
Fix http-cache usage (#1689)
* Fix http-cache usage Signed-off-by: William Woodruff <william@yossarian.net> * Bump to latest alpha Signed-off-by: William Woodruff <william@yossarian.net> * Re-lock Signed-off-by: William Woodruff <william@yossarian.net> * Disable noisy http-cache logs Signed-off-by: William Woodruff <william@yossarian.net> --------- Signed-off-by: William Woodruff <william@yossarian.net>
1 parent adabd2d commit a0f9dcb

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ flate2 = "1.1.9"
4646
fst = "0.4.7"
4747
futures = "0.3"
4848
http = "1.4.0"
49-
http-cache-reqwest = { version = "1.0.0-alpha.4", features = ["manager-moka"] }
49+
http-cache-reqwest = { version = "1.0.0-alpha.5", features = ["manager-moka"] }
5050
human-panic = "2.0.5"
5151
ignore = "0.4.25"
5252
indexmap = { version = "2.13.0", features = ["serde"] }

crates/zizmor/src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,12 @@ async fn run(app: &mut App) -> Result<ExitCode, Error> {
768768
.from_env()
769769
.expect("failed to parse RUST_LOG");
770770

771+
// HACK: The current alpha release of http-cache (via http-cache-reqwest)
772+
// emits a lot of noisy WARN-level logs about invalid cache entries
773+
// due to their bincode -> postcard migration. These aren't actionable for us.
774+
#[allow(clippy::unwrap_used)]
775+
let filter = filter.add_directive("http_cache::managers::cacache=error".parse().unwrap());
776+
771777
let reg = tracing_subscriber::registry()
772778
.with(
773779
tracing_subscriber::fmt::layer()

0 commit comments

Comments
 (0)