Deal with distfile requests being blocked by crates.io#4052
Conversation
crates.io (on Amazon CloudFront) is now rejecting our requests with 403. I have made a similar change to upstream Portage, but let's use our own string for Flatcar. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This hasn't actually been merged upstream yet, but it's about to be. The user-agent change deals with the blocked requests, but it turns out we should be using this faster and less restricted endpoint anyway. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
|
lgtm, i guess we should just make sure that the build goes thru and all good then |
The relevant bit has passed. All the packages are built as binaries, so there are no more distfiles to download. If any of them had mismatched, it would have failed the hash checks. |
Perfect then! |
|
Cherry-picked to:
|
|
Hey @chewi I've backported this to LTS (flatcar-4081) but it fails with: Do you know who takes care of setting this |
|
I don't know what happened there, but you only need the cargo.eclass fix. The make.conf change is just an extra. |
Ok good, thanks. I'll revert the "make.conf: Set a custom user-agent for wget when fetching distfiles" commit then. It's only for LTS, so that's "OK" in terms of consistency haha. |
|
For the record, I've realised it's probably because |
crates.io (on Amazon CloudFront) is now rejecting our requests with 403. This can be avoided by setting a custom user-agent for wget. I have made a similar change to upstream Portage, but let's use our own string for Flatcar.
While the user-agent change deals with the blocked requests, it turns out we should be using a different faster and less restricted endpoint anyway, so let's also take the (about to be merged upstream) cargo.eclass change as well.
How to use
Try building a Rust-based package with
GENTOO_MIRRORS="".Testing done
Jenkins got as far as the image job, which failed for an unrelated reason.
changelog/directory (user-facing change, bug fix, security fix, update)/bootand/usrsize, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.