Skip to content

chore(deps): bump uv to 0.11.0 (reqwest 0.13) - #6127

Merged
tdejager merged 1 commit into
prefix-dev:mainfrom
baszalmstra:bump-uv-0.11.0
May 15, 2026
Merged

tdejager merged 1 commit into
prefix-dev:mainfrom
baszalmstra:bump-uv-0.11.0

Conversation

@baszalmstra

@baszalmstra baszalmstra commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Single bump that aligns pixi with the new reqwest 0.13 / astral-middleware 0.5 world. uv 0.11.0 is the first uv release on this stack, and rattler 0.43 + rattler-build (post #2493) coordinate on it.

Versions

  • uv 0.10.12 → 0.11.0
  • reqwest 0.12 → 0.13
  • astral-reqwest-middleware 0.4 → 0.5, astral-reqwest-retry 0.8 → 0.9
  • http-cache-reqwest 0.16 → 1.0.0-alpha.6 (first release on reqwest 0.13)
  • rattler 0.42 → 0.43, rattler_cache 0.7→0.8, rattler_index 0.28→0.29, rattler_networking 0.26→0.27, rattler_package_streaming 0.25→0.26, rattler_repodata_gateway 0.28→0.29, rattler_s3 0.1→0.2, rattler_shell 0.26→0.27, rattler_solve 6→7 (major), rattler_upload 0.6→0.7
  • rattler-build (git/main, includes chore: bump rattler crates and migrate to reqwest 0.13 rattler-build#2493)
  • url pin 2.5.4 → 2.5, memchr 2.7.4 → 2.8 (rattler-build's lower bound)
  • Workspace shim crate patches/reqwest_middleware_shim: now re-exports astral-reqwest-middleware 0.5 (version bumped to 0.5.99 to satisfy http-cache-reqwest's \"0.5.0\" requirement). The shim is still needed because http-cache-reqwest references the reqwest-middleware crate name on crates.io while rattler/uv use the astral fork.

Per workspace convention, only minor/major bumps appear in Cargo.toml; patch versions are tracked in Cargo.lock.

Feature renames

  • pixi workspace: feature rustls-tls → rustls across all crates (Cargo.toml + cfg attrs + doc comments). Matches the new convention from rattler + reqwest 0.13.
  • reqwest 0.13 dropped rustls-tls-native-roots, native-tls-alpn, and macos-system-configuration. Replaced respectively with manual cert loading (see below), no-op (ALPN is on by default), and system-proxy.

TLS rewrite (mirrors uv PR astral-sh/uv#18550)

reqwest 0.13 removed tls_built_in_root_certs / _webpki_certs / _native_certs in favor of tls_certs_only(Vec<Certificate>). We mirror uv's approach with a small Certificates newtype:

  • New module crates/pixi_utils/src/tls.rs with factories webpki_roots(), from_native_store(), from_env() (handles SSL_CERT_FILE / SSL_CERT_DIR), and to_reqwest_certs().
  • load_root_certificates resolves: env vars > config-set value > backend-aware default.
  • default_tls_root_certs() helper returns SystemCerts on native-tls builds and Webpki on rustls builds.

Config changes (with backward compat)

TlsRootCerts enum:

  • Native → renamed to SystemCerts (serde \"system-certs\"). Matches uv's vocabulary.
  • Old tls-root-certs = \"native\" configs still load; they map to a new LegacyNative variant marked #[deprecated] that emits a runtime warning pointing users at the new spelling.
  • All (merge webpki + native) is deprecated: uv 0.11's public API can't merge trust stores, so we can't faithfully forward it for uv anymore. Falls through to SystemCerts at runtime with a warning. Use webpki, system-certs, or set SSL_CERT_FILE / SSL_CERT_DIR.
  • New default is SystemCerts (was All).
  • New getter Config::tls_root_certs_explicit() -> Option<TlsRootCerts> returns the user-set value without applying a default, letting pixi_utils layer its backend-aware fallback.

uv API deltas absorbed

  • BaseClientBuilder::native_tls(_) + built_in_root_certs(_) → single .with_system_certs(bool). Helper should_use_system_certs_for_uv maps the config: native-tls build OR TlsRootCerts::SystemCerts | LegacyNative → true; Webpki / All → false.
  • RepositoryUrl: Into<Url> removed → Deref-chain in pixi_uv_conversions::conversions.
  • rattler_solve::SolverTask::locked_packages is now Vec<&'a RepoDataRecord> (was owned).
  • rattler_upload::upload_package_to_s3 signature change: takes ResolvedS3Credentials directly (no more auth_storage). Wired the existing ResolvedS3Credentials::from_sdk() instance through. Full manifest-driven credentials wiring is in feat(publish): honor workspace.s3-options when uploading to s3 #6069 (still open) and out of scope here.

Test plan

  • cargo check --workspace (passing locally)
  • cargo check --tests --workspace (passing locally)
  • cargo nextest run
  • pytest
  • cargo clippy --all-targets -- -D warnings
  • cargo fmt --check
  • cargo deny check
  • Manual: TLS config with tls-root-certs = \"native\" still works and emits deprecation warning
    image
  • Manual: TLS config with tls-root-certs = \"system\" works
  • Manual: TLS config with `tls-root-certs = "all"' works:
    image
  • Manual: SSL_CERT_FILE / SSL_CERT_DIR override config

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools: Claude

@baszalmstra
baszalmstra force-pushed the bump-uv-0.11.0 branch 4 times, most recently from f4f4ce6 to 88fffc8 Compare May 15, 2026 11:18
@baszalmstra baszalmstra added the test:extra_slow Run the extra slow tests label May 15, 2026
@baszalmstra
baszalmstra force-pushed the bump-uv-0.11.0 branch 5 times, most recently from 0136a58 to e2aff2e Compare May 15, 2026 13:10
@baszalmstra
baszalmstra marked this pull request as ready for review May 15, 2026 13:48
Comment thread crates/pixi_config/src/lib.rs Outdated
/// runtime and emits a warning. Use `webpki` or `system` explicitly,
/// or set `SSL_CERT_FILE` / `SSL_CERT_DIR`.
#[deprecated(
note = "merging webpki + native roots is no longer supported; use `system`, `webpki`, or set SSL_CERT_FILE/DIR"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
note = "merging webpki + native roots is no longer supported; use `system`, `webpki`, or set SSL_CERT_FILE/DIR"
note = "merging webpki + native roots is no longer supported: use `system`, `webpki`, or set SSL_CERT_FILE/DIR"

Comment thread crates/pixi_uv_context/src/lib.rs Outdated
Comment on lines +230 to +240
/// Build the [`BaseClientBuilder`] that all uv flows in pixi share.
///
/// Centralises TLS / proxy / middleware wiring so the registry-client and
/// satisfaction code paths stay in sync.
///
/// Shares pixi's reqwest client (TLS, proxies, mirrors, connection pool)
/// with uv via `custom_client` when no host needs the per-host TLS bypass.
/// uv's `allow_insecure_host` routes flagged hosts through a separate
/// `dangerous_client` with cert verification disabled; reqwest 0.13 has no
/// per-host opt-in on a single `Client`, so when the list is non-empty we
/// let uv build its own dual clients via `with_system_certs` instead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let claude rewrite this comment, its a bit fuzzy to me.

@tdejager
tdejager enabled auto-merge (squash) May 15, 2026 13:59
@tdejager
tdejager merged commit b6cf3d5 into prefix-dev:main May 15, 2026
40 checks passed
@baszalmstra baszalmstra mentioned this pull request May 15, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:extra_slow Run the extra slow tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants