Skip to content

rustPlatform.fetchCargoVendor: retry fetching tarballs#357262

Merged
Mic92 merged 1 commit intoNixOS:masterfrom
TomaSajt:fetch-cargo-vendor-retry
Nov 19, 2024
Merged

rustPlatform.fetchCargoVendor: retry fetching tarballs#357262
Mic92 merged 1 commit intoNixOS:masterfrom
TomaSajt:fetch-cargo-vendor-retry

Conversation

@TomaSajt
Copy link
Contributor

@TomaSajt TomaSajt commented Nov 19, 2024

Not sure if a backup_factor of 0.5 is too high.

@JohnRTitor

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. label Nov 19, 2024
@nix-owners nix-owners bot requested review from figsoda, winterqt and zowoq November 19, 2024 13:12
@Bot-wxt1221
Copy link
Member

This is need for #357257.

@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 357262


x86_64-linux

✅ 35 packages built:
  • cargo-shuttle
  • cosmic-applets
  • cosmic-applibrary
  • cosmic-bg
  • cosmic-comp
  • cosmic-comp.debug
  • cosmic-design-demo
  • cosmic-edit
  • cosmic-files
  • cosmic-greeter
  • cosmic-launcher
  • cosmic-notifications
  • cosmic-osd
  • cosmic-panel
  • cosmic-randr
  • cosmic-session
  • cosmic-settings
  • cosmic-settings-daemon
  • cosmic-store
  • cosmic-term
  • cosmic-workspaces-epoch
  • cosmic-workspaces-epoch.debug
  • hieroglyphic
  • mitmproxy2swagger
  • mitmproxy2swagger.dist
  • nix-init
  • popsicle
  • python311Packages.json-stream
  • python311Packages.json-stream-rs-tokenizer
  • python311Packages.json-stream-rs-tokenizer.dist
  • python311Packages.json-stream.dist
  • python312Packages.json-stream
  • python312Packages.json-stream-rs-tokenizer
  • python312Packages.json-stream-rs-tokenizer.dist
  • python312Packages.json-stream.dist

aarch64-linux

✅ 35 packages built:
  • cargo-shuttle
  • cosmic-applets
  • cosmic-applibrary
  • cosmic-bg
  • cosmic-comp
  • cosmic-comp.debug
  • cosmic-design-demo
  • cosmic-edit
  • cosmic-files
  • cosmic-greeter
  • cosmic-launcher
  • cosmic-notifications
  • cosmic-osd
  • cosmic-panel
  • cosmic-randr
  • cosmic-session
  • cosmic-settings
  • cosmic-settings-daemon
  • cosmic-store
  • cosmic-term
  • cosmic-workspaces-epoch
  • cosmic-workspaces-epoch.debug
  • hieroglyphic
  • mitmproxy2swagger
  • mitmproxy2swagger.dist
  • nix-init
  • popsicle
  • python311Packages.json-stream
  • python311Packages.json-stream-rs-tokenizer
  • python311Packages.json-stream-rs-tokenizer.dist
  • python311Packages.json-stream.dist
  • python312Packages.json-stream
  • python312Packages.json-stream-rs-tokenizer
  • python312Packages.json-stream-rs-tokenizer.dist
  • python312Packages.json-stream.dist

x86_64-darwin

✅ 13 packages built:
  • cargo-shuttle
  • hieroglyphic
  • mitmproxy2swagger
  • mitmproxy2swagger.dist
  • nix-init
  • python311Packages.json-stream
  • python311Packages.json-stream-rs-tokenizer
  • python311Packages.json-stream-rs-tokenizer.dist
  • python311Packages.json-stream.dist
  • python312Packages.json-stream
  • python312Packages.json-stream-rs-tokenizer
  • python312Packages.json-stream-rs-tokenizer.dist
  • python312Packages.json-stream.dist

aarch64-darwin

✅ 13 packages built:
  • cargo-shuttle
  • hieroglyphic
  • mitmproxy2swagger
  • mitmproxy2swagger.dist
  • nix-init
  • python311Packages.json-stream
  • python311Packages.json-stream-rs-tokenizer
  • python311Packages.json-stream-rs-tokenizer.dist
  • python311Packages.json-stream.dist
  • python312Packages.json-stream
  • python312Packages.json-stream-rs-tokenizer
  • python312Packages.json-stream-rs-tokenizer.dist
  • python312Packages.json-stream.dist


sha256_hash = hashlib.sha256()
with requests.get(url, stream=True) as response:
with session.get(url, stream=True) as response:
Copy link
Member

@JohnRTitor JohnRTitor Nov 19, 2024

Choose a reason for hiding this comment

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

I liked the solution from the other PR, was pretty straightforward

But I guess this is more resilent

Copy link
Member

@JohnRTitor JohnRTitor left a comment

Choose a reason for hiding this comment

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

Tested and works fine

@Mic92 Mic92 merged commit bf20efd into NixOS:master Nov 19, 2024
@JohnRTitor JohnRTitor added the 8.has: port to stable This PR already has a backport to the stable release. label Dec 6, 2024
@TomaSajt TomaSajt deleted the fetch-cargo-vendor-retry branch June 19, 2025 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 8.has: port to stable This PR already has a backport to the stable release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants