Skip to content

chore: bump rattler#6326

Open
baszalmstra wants to merge 3 commits into
prefix-dev:mainfrom
baszalmstra:claude/optimistic-maxwell-el5j3e
Open

chore: bump rattler#6326
baszalmstra wants to merge 3 commits into
prefix-dev:mainfrom
baszalmstra:claude/optimistic-maxwell-el5j3e

Conversation

@baszalmstra

@baszalmstra baszalmstra commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Description

Updates the rattler and rattler-build crates to their latest versions. Minor and major version bumps are applied in Cargo.toml, while patch bumps are taken through the lockfile only. The pinned rattler-build git revision is moved to the latest main.

Notable changes that came with the update:

  • Timestamps now use jiff instead of chrono, matching the rattler ecosystem.
  • Hash handling moves to the new digest release.
  • The Rust toolchain is bumped to 1.95, which the new rattler requires.

Fixes #6308
Fixes #6310

How Has This Been Tested?

cargo check --workspace --all-targets, cargo clippy --all-targets --workspace -- -D warnings, and cargo fmt all pass. Affected snapshots were updated. The full integration test suite was not run locally and is left to CI.

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 Code

Checklist:

  • I have performed a self-review of my own code
  • I have added sufficient tests to cover my changes.

@baszalmstra baszalmstra requested a review from Hofer-Julian June 10, 2026 09:32
claude added 2 commits June 10, 2026 09:36
Bump the rattler crates to their latest releases, taking minor/major
version bumps in the workspace `Cargo.toml` and patch bumps via the
lockfile, and move the pinned `rattler-build` git revision to the latest
`main`.

The new ecosystem crosses two breaking boundaries that require code
changes across the workspace:

- chrono -> jiff for all timestamps (`PackageRecord.timestamp` is now
  `TimestampMs`, `rattler_solve::ExcludeNewer` and rattler-build
  `Directories` take `jiff::Timestamp`).
- digest 0.10 -> 0.11: `GenericArray` is now `hybrid_array::Array`, which
  no longer implements `LowerHex` or `io::Write`, so hashes are formatted
  with `hex::encode`, file hashing uses `HashingWriter`, and the workspace
  `digest` dependency is bumped to 0.11.

Also adapts to renamed rattler_conda_types fields
(`experimental_extra_depends` -> `extra_depends`, `experimental_v3` ->
`v3`, `with_experimental_conditionals` -> `with_conditionals`) and the
`ChannelInfo`/`RepoData` shape changes.

Because `rattler 0.44` pins `rattler_shell =0.27.6` -> `sysinfo 0.39`,
the toolchain is bumped to 1.95.0.
The ExcludeNewerMismatch error now renders timestamps via jiff
(RFC 3339, e.g. 2025-11-05T00:00:00Z) instead of chrono's
'2025-11-05 00:00:00 UTC' format.
@baszalmstra baszalmstra force-pushed the claude/optimistic-maxwell-el5j3e branch from da64715 to 15438c8 Compare June 10, 2026 09:37
Converting the chrono cutoff to jiff via from_millisecond truncated
sub-millisecond precision, so a relative (now-based) exclude-newer cutoff
could land just before a nanosecond-precision reference timestamp, failing
the 'cutoff >= before' assertions. Use Timestamp::new to keep full
precision.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants