Skip to content

feat: add offline mode to rattler CLI#2537

Open
baszalmstra wants to merge 1 commit into
conda:mainfrom
baszalmstra:feat/offline-mode
Open

feat: add offline mode to rattler CLI#2537
baszalmstra wants to merge 1 commit into
conda:mainfrom
baszalmstra:feat/offline-mode

Conversation

@baszalmstra

@baszalmstra baszalmstra commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add an offline middleware in rattler_networking that rejects outgoing requests before they reach the rest of the client stack.
  • Add a global --offline flag to the rattler CLI and pass it explicitly into commands that create HTTP clients.
  • Use cached repodata only for solve/create/search/exec while offline, and avoid auth/upload network calls.

Validation

  • cargo fmt --all
  • cargo check -p rattler_networking -p rattler-bin
  • cargo test -p rattler_networking offline_middleware --lib
  • git diff --check

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: pi coding agent

@baszalmstra baszalmstra requested a review from pavelzw June 25, 2026 15:18

@pavelzw pavelzw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cc @delsner we can use this in pixi-pack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants