Open flokli opened 1 week ago
I got further by running the updater script with `NIX_CURL_FLAG="--netrc-file = /path/to/a/netrc" which contains a scoped personal access token for public repos.
It looks like this is picked up by nix flake prefetch
.
However there still seem to be some issues with error handling and/or faulty/broken/regressed lines in the .csv
, causing the process to be quite painful.
Hmmh, no, I got another message about being rate limited, so I guess the NIX_CURL_FLAG
env var does not apply here.
It seems luarocks-nix is doing the downloading here:
(and that's where it's failing now). How do I configure this to use my PAT?
there is a warning that pops up when you launch the updater without github-token
$ luarocks-packages-updater --help
....
--github-token GITHUB_TOKEN, -t GITHUB_TOKEN
Allows to set --proc to higher values. Uses GITHUB_API_TOKEN environment variables as the default value.
--debug=DEBUG
also shows more of the failures
Any improvement welcome. Out of curiosity what package are you trying to add ?
Describe the bug
I tried adding a new lua package, by adding it to
maintainers/scripts/luarocks-packages.csv
. Afterwards I rannix-shell -p luarocks-packages-updater --run luarocks-packages-updater
as instructed indoc/languages-frameworks/lua.section.md
and got a wall of errors:Apparently Nix ran into github rate limits. We should probably improve error handling in the updater (so it doesn't invoke
luarocks
in case of failure), as well as document how to prevent running into these rate limits in the docs.Steps To Reproduce
Steps to reproduce the behavior:
nix-shell -p luarocks-packages-updater --run luarocks-packages-updater
Notify maintainers
@teto
Add a :+1: reaction to issues you find important.