News for hackers. Stuff that matters.
Re:GitHub Packages Is Down by bin_bash on Wednesday March 01, 2023 @09:10AM (#34982552)
no, this is GitHub packages, not GitHub repositories. Cargo doesn't use this. It doesn't use GitHub repositories either, they store the crates internally.
Re:GitHub Packages Is Down by ameliaquining on Wednesday March 01, 2023 @09:42AM (#34982907)
The crates.io index actually is a GitHub repository, so I think a GitHub outage that affected repositories (not just packages) could break Cargo. Only metadata is stored there, though, not the actual crates. I'm not 100% sure why it works like this; there seems to be a plan to change things soon so that Cargo running on users' machines doesn't talk directly to GitHub by default (https://blog.rust-lang.org/inside-rust/2023/01/30/cargo-spar...), though the GitHub repo would still be the source of truth.

crates.io also uses GitHub as an OAuth provider (and it's currently the only one offered), so if that broke then people wouldn't be able to publish crates, though downloading existing ones would presumably still work since you don't have to log in to do that.

Re:GitHub Packages Is Down by VWWHFSfQ on Wednesday March 01, 2023 @09:54AM (#34983042)
Cargo is hard-coded to use GitHub for the crates.io index [1]

[1] https://github.com/rust-lang/cargo/blob/master/src/cargo/sou...

Re:GitHub Packages Is Down by bin_bash on Wednesday March 01, 2023 @10:25AM (#34983361)
I stand corrected—I was thinking of the crates themselves.
Re:GitHub Packages Is Down by snacktaster on Wednesday March 01, 2023 @09:58AM (#34983085)
That's a big yikes...
Re:GitHub Packages Is Down by inejge on Wednesday March 01, 2023 @11:00AM (#34983760)
That's being addressed with a new index protocol, specified a while ago[1], available for testing since the middle of the last year[2], and slated for release in a week's time[3].

[1] https://rust-lang.github.io/rfcs/2789-sparse-index.html

[2] https://blog.rust-lang.org/2022/06/22/sparse-registry-testin...

[3] https://blog.rust-lang.org/inside-rust/2023/01/30/cargo-spar...