this post was submitted on 03 Sep 2026
186 points (99.5% liked)

Programming

28431 readers
151 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
 

Since yesterday a lot of users in Europe found their workflows failing due to Github seemingly randomly throwing HTTP/401 on git clone/git pull when interacting with public repos without authentication.

It was now confirmed by staff member that this indeed is intentional and no further steps are planned at this point.

you are viewing a single comment's thread
view the rest of the comments
[–] ChaosMonkey@lemmy.dbzer0.com 8 points 1 week ago (1 children)

Wait, doesn't rust cargo pull from crates.io?

[–] onlinepersona@programming.dev 3 points 1 week ago* (last edited 1 week ago) (2 children)

crates.io pulls everything from github.

[–] teolan@lemmy.world 16 points 1 week ago (1 children)

No true at all.

The index used to be from github but now it pulls from a CDN by default and doesn't do a full clone of the index. Crate downloads have always been pulled from a CDN.

The index was quite small in the beginning this is why it worked.

[–] onlinepersona@programming.dev 1 points 1 week ago (2 children)

The service itself pulls from github to create the crates. Cargo pulls from crates.io, that is correct.

[–] teolan@lemmy.world 10 points 1 week ago

Who pulls from Github to create the crates? The crates are pushed by cargo publish to crates.io's API, not to github.

crates.io does have an index in GitHub, but that's legacy and pretty much unused for reads now. GitHub doesn't store the crates themselves.

[–] rgalex@lemmy.world 4 points 1 week ago

It seems that's not the case. Crates.io only needs Github for logging in. Publishing a package uploads a .tar.gz to crates.io with the source code.

https://users.rust-lang.org/t/publishing-crates-without-github-and-some-criticism/134597/11

[–] chunes@lemmy.world 1 points 1 week ago (1 children)

yikes, what a terrible design lol. And here I thought cargo was actually pretty solid.

[–] onlinepersona@programming.dev 1 points 1 week ago

You can only publish packages via github, so it's not a surprise, IMO. I don't know why they did that in the first place instead of using email like every normal service.