fix: GitHub API rate-limiting#119
Open
cpressland wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bat,ccc,copa,crane,cyclonedx,fd,flux,fx,fzf,gic,gitleaks,glow,hurl,hyperfine,jnv,k3d,kyverno,lazygit,notation,opencode,ripgrep,rtk,ruff,tmux,uv,yazi,zarf, andzoxideccc,fd,fx,fzf,glow,hurl,hyperfine,k3d,lazygit,ripgrep,rtk,tmux,yazi, andzoxideThis replaces most GitHub API calls with a simple redirect lookup, e.g.:
This removes the requirement for
jqand prevents rate-limiting from the GitHub API:{ "message": "API rate limit exceeded for xxx.xxx.xxx.xxx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)", "documentation_url": "https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting" }Codex wasn't modified as it genuinely needs the GitHub API to lookup re-release versions.
Each tool was tested with Podman for the amd64 platform as not everything here supports arm64.
podman run -it --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "VERSION=latest /app/src/bat/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/crane/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/cyclonedx/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/fd/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/flux/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/fx/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/fzf/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/gic/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/gitleaks/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/glow/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/hurl/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/hyperfine/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/jnv/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/k3d/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/kyverno/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/lazygit/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/notation/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/opencode/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/ripgrep/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/rtk/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/ruff/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/tmux/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/uv/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/yazi/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/zarf/install.sh"podman run --rm --platform=linux/amd64 -v "$PWD:/app" debian:latest bash -c "/app/src/zoxide/install.sh"