Closed lvyuemeng closed 1 week ago
I think you might have provided an invalid github token.
cargo-binstall would only use GitHub GraphQL API jf a github token is provided, and since the API endpoint returns unauthorised, I think the github token you passed in might be invalid.
I think you might have provided an invalid github token.
cargo-binstall would only use GitHub GraphQL API jf a github token is provided, and since the API endpoint returns unauthorised, I think the github token you passed in might be invalid.
I didn't intentionally provide github token.(sorry if I omit something). What might cause this?
cargo-binstall tries to find github token in
gh auth token
cargo-binstall tries to find github token in
- env GITHUB_TOKEN
- env GH_TOKEN
- from
gh auth token
- from .git config
I don't have env GITHUB_TOKEN or GH_TOKEN, and gh auth token
is fine, it prints the token. I'm still confused.
gh auth token
is fine, it prints the token. I'm still confused.
Is the token from gh auth token
actually valid?
For example this graphql query copied from official doc:
gh api graphql -F owner='{owner}' -F name='{repo}' -f query='
query($name: String!, $owner: String!) {
repository(owner: $owner, name: $name) {
releases(last: 3) {
nodes { tagName }
}
}
}
'
here the gh auth status
github.com ✓ Logged in to github.com account lvyuemeng (keyring)
- Active account: true
- Git operations protocol: https
- Token: gho_****
- Token scopes: 'gist', 'read:org', 'repo', 'workflow'
I try to use cargo binstall now, it works, but the problem becomes:
INFO Installing binaries... WARN Attempting at atomic rename failed: Access Denied。 (os error 5), fallback to other methods.
FIne... It seems occur only on the self update of cargo-binstall. I install trunk again, it works. : )
FIne... It seems occur only on the self update of cargo-binstall. I install trunk again, it works. : )
We try to use atomic move to install binary, which might fail on Windows if it is currently running.
https://docs.rs/atomic-file-install/1.0.5/src/atomic_file_install/lib.rs.html#79-112
I try to use cargo binstall now, it works, but the problem becomes:
Strange, could be hitting primary or secondary rate limit
I try to use cargo binstall now, it works, but the problem becomes:
Strange, could be hitting primary or secondary rate limit
I'm not expert for this, any underneath logic?
The rate limit for restful/graphql API is applied by github:
The rate limit for restful/graphql API is applied by github:
Thanks for your patience!
OS: windows11 Use binstall to install anything(for example: binstall itself) will output: