Repository navigation
unblock ci: work around crates.io User-Agent blocklist - #2448
Merged
brainrake merged 2 commits intoSep 14, 2026
Merged
Conversation
PostgreSQL Extension Dependency Analysis: PR #2448
SummaryNo extensions had dependencies with MAJOR version updates. Full Analysis ResultsPostgreSQL 15 Extension DependenciesPostgreSQL 17 Extension DependenciesOrioleDB 17 Extension Dependencies |
PostgreSQL Package Dependency Analysis: PR #2448
SummaryNo packages had MAJOR version updates. Full Analysis ResultsPostgreSQL 15 Dependency ChangesExtracting PostgreSQL 15 dependencies...
Runtime Closure Size
Raw Dependency ClosurePostgreSQL 17 Dependency ChangesExtracting PostgreSQL 17 dependencies...
Runtime Closure Size
Raw Dependency Closure |
…ing paths crates.io started 403'ing python-requests' default UA and rate-limiting its API endpoint (NixOS/nixpkgs#512735), breaking fetchCargoVendor, importCargoLock, and fetchCrate alike. Redirects each to static.crates.io / swaps in the fixed util script, scoped to cargo-pgrx's rustPlatform construction. Verified against Raminder's pg_graphql 1.6.2 bump (rs/bump-pg-graphql): builds clean end-to-end with these fixes applied. Co-Authored-By: Claude Sonnet 5 <[email protected]>
brainrake
force-pushed
the
martonboros/fix-fetch-cargo-vendor-crates-io-ua
branch
from
September 14, 2026 10:24
26a1561 to
c16cb2b
Compare
brainrake
marked this pull request as ready for review
September 14, 2026 10:25
It fixes fetchCrate too, not just cargo vendoring. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The workaround affects multiple build paths, with darwin-arm64 CI still unverified.
Pull request overview
This pull request works around crates.io User-Agent blocking and rate limiting for cargo-pgrx Rust dependency fetches.
Changes:
- Adds patched Cargo fetching behavior.
- Redirects crate downloads to
static.crates.io. - Applies the workaround to cargo-pgrx and pgrx extensions.
File summaries
| File | Summary |
|---|---|
nix/cargo-pgrx/mkPgrxExtension.nix |
Applies the cargo fetch workaround to extensions. |
nix/cargo-pgrx/fix-fetch-cargo.nix |
Defines patched Cargo fetch behavior. |
nix/cargo-pgrx/default.nix |
Uses the workaround for cargo-pgrx builds. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This comment has been minimized.
This comment has been minimized.
brainrake
deleted the
martonboros/fix-fetch-cargo-vendor-crates-io-ua
branch
September 14, 2026 19:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
python-requests' default UA and rate-limiting its API endpoint (NixOS/nixpkgs#512735), breaking every rust-based build here —fetchCargoVendor,importCargoLock, andfetchCratealike.nix/cargo-pgrx/fix-cargo.nixredirects each tostatic.crates.io/ swaps in the fixed util script, scoped to cargo-pgrx'srustPlatformconstruction.nix build .#cargo-pgrx_0_14_3and against Raminder's pg_graphql 1.6.2 bump (rs/bump-pg-graphql) — builds clean end-to-end.Test plan
nix build .#cargo-pgrx_0_14_3succeeds🤖 Generated with Claude Code