Replies: 1 comment 5 replies
-
We should probably check if the env variable is empty, but in the meantime have you tried unsetting the env var instead? - shell: bash
run: |
unset GITHUB_TOKEN
cargo binstall ... |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Gitea/Forgejo Actions to set up my CI. It (re)uses GitHub Actions to set up the steps and I really want to use cargo-binstall to speed things up. However, I am running into the issue that Actions sets the
GITHUB_TOKEN
environment variable (next toGITEA_TOKEN
/FORGEJO_TOKEN
) to be backwards compatible, and this works fine overall, except... when calling cargo-binstall.It sees that this environment variable is set and starts to use it to do GitHub API queries for releases if I gather that correctly from the debug logs and I cannot get it to not use it.
This is comparable with running
env GITHUB_TOKEN="foo" cargo binstall ...
. Even settingGITHUB_TOKEN
to empty doesn't help. What would be the best approach here? Now it just retries 3 times and then it succeeds, but this costs 360s, almost the entire time that usingcargo binstall
instead ofcargo install
saves me 😅Beta Was this translation helpful? Give feedback.
All reactions