Skip to content

feat: Add GCS support - #309

Merged
Pavel Zwerschke (pavelzw) merged 4 commits into
mainfrom
codex/enable-gcs-feature-rattler-networking
May 15, 2026
Merged

Pavel Zwerschke (pavelzw) merged 4 commits into
mainfrom
codex/enable-gcs-feature-rattler-networking

Conversation

@Codex

@Codex Codex AI commented May 15, 2026

Copy link
Copy Markdown
Contributor

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>Enable rattler_networking "gcs" feature so pixi-pack can fetch from gcs:// conda channels</issue_title>
<issue_description>## Problem

pixi-pack cannot fetch conda packages whose URLs are gcs://…, even when the lockfile was generated by pixi (which resolves the same URLs fine). Packing fails with:

Error: could not download package: builder error for url
(gcs://<bucket>/<channel>/noarch/<pkg>.conda)

Reproducer (any pixi.lock containing a package from a gcs:// channel):

pixi-pack --environment <env> --platform linux-64 --output-file out.tar pyproject.toml

Root cause

pixi-pack depends on rattler_networking without the gcs feature:

https://github.com/Quantco/pixi-pack/blob/main/Cargo.toml — current dep:

rattler_networking = { version = "0.26.12", default-features = false, features = [
  "s3",
  "rattler_config",
] }

rattler_networking declares:

gcs = ["google-cloud-auth", "tokio/sync"]

Without that feature, no handler is registered for gcs:// URLs, so they fall through to the generic HTTP fetcher and error out.

pixi itself enables this — its Cargo.toml lists "google-cloud-auth" in the rattler_networking features — which is why pixi install works for the same lockfile that pixi-pack cannot pack.

Proposed fix

One-line change in Cargo.toml:

 rattler_networking = { version = "0.26.12", default-features = false, features = [
   "s3",
+  "gcs",
   "rattler_config",
 ] }

No release-workflow change is needed — .github/workflows/build.yml already runs a plain cargo build --profile release --locked, so the new feature is picked up for every target.

I'm happy to send a PR if this is a direction you're open to.

Environment

  • pixi-pack 0.7.6 (also confirmed against main at the time of writing)
  • Linux x86_64 and aarch64 release binaries from GitHub Releases</issue_description>

Comments on the Issue (you are @codex[agent] in this section)

Comment thread src/pack.rs Resolved
@pavelzw Pavel Zwerschke (pavelzw) changed the title [WIP] Enable rattler_networking 'gcs' feature for pixi-pack feat: Add GCS support May 15, 2026
@pavelzw
Pavel Zwerschke (pavelzw) marked this pull request as ready for review May 15, 2026 12:12
@github-actions github-actions Bot added the enhancement New feature or request label May 15, 2026
@pavelzw
Pavel Zwerschke (pavelzw) merged commit 1038d91 into main May 15, 2026
16 of 20 checks passed
@pavelzw
Pavel Zwerschke (pavelzw) deleted the codex/enable-gcs-feature-rattler-networking branch May 15, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable rattler_networking "gcs" feature so pixi-pack can fetch from gcs:// conda channels

2 participants