Skip to content

Commit 160ae0f

Browse files
nbafrankclaude
andcommitted
Release v0.2.15: soften P3M-unavailable message
The "WARN P3M binary download failed for X, falling back to source: 404" line read like a uvr bug to users, but it's a normal happens-sometimes situation: Posit's package manager doesn't always build every package version against every R minor (especially older branches like 4.4). Falling back to source compilation is the correct behavior; users only saw the warn-level wording as alarm. - Detail (404 message, exact URL) drops to debug-level. - Single info-level line: "<pkg> <ver>: no P3M binary for this R minor, compiling from source" — explains *why* the install slows down for that package without sounding like an error. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f11084b commit 160ae0f

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 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
@@ -3,7 +3,7 @@ members = ["crates/uvr", "crates/uvr-core"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.2.14"
6+
version = "0.2.15"
77
edition = "2021"
88
authors = ["uvr contributors"]
99
license = "MIT"

crates/uvr-core/src/installer/download.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,18 @@ impl Downloader {
8080
used_binary: is_binary,
8181
}),
8282
Err(e) if is_binary && fallback_url.is_some() => {
83-
// Binary download failed — fall back to source tarball
83+
// Binary download failed — fall back to source tarball.
84+
// The most common reason here is "Posit hasn't built this
85+
// version against this R minor" (especially on older R
86+
// branches), which is normal and not a uvr error. Keep the
87+
// detail at debug-level; users see a single dim INFO line
88+
// so it's clear *why* the install is taking longer.
8489
let fallback = fallback_url.as_ref().unwrap();
85-
tracing::warn!(
86-
"P3M binary download failed for {pkg_name}, falling back to source: {e}"
90+
tracing::debug!(
91+
"P3M binary unavailable for {pkg_name} {pkg_version}, falling back to source: {e}"
92+
);
93+
tracing::info!(
94+
"{pkg_name} {pkg_version}: no P3M binary for this R minor, compiling from source"
8795
);
8896
let path = download_one(
8997
&client,

0 commit comments

Comments
 (0)