Dealing with Codeberg rate limits

Hi,

as some of you mat know codeberg.org is becoming more populare lately. So much that some people move there projects over to it. Since codeberg is not a commercial operation, they do limit unauthenticated traffic.

So now I have the problem that one of the packages I depend on is coming from codeberg (nvim-jdtls to be specific). Since codeberg rate limits unauthenticated access, it looks like nvim-jdtls hasnt’t made it into nixpkgs binary cache. When I build my config on CI, it fails for the same reason.

I’m now looking for a way to supply a codeberg token, so my build will make authenticated requests. Will adding a .netrc do the trick? How do others deal with the situation?

Cheers,
Benedikt

1 Like

How are you currently wiring up your inputs? Have you tried using git+ssh with appropriate keys in the evaluators user config?

1 Like

use access-tokens option? i haven’t use it for codeberg yet, but for github, which works fine. maybe you can have a try.

Afaik flakes/fetchTree don’t support a codeberg: schema, so I doubt that nix knows how to apply a configured access token

Assuming this is the repository on Codeberg:

That repository is mirrored on GitHub:

If nothing else works, you could override the source URL for the nvim-jdtls package to point to the GitHub repository instead of Codeberg