arnold icon indicating copy to clipboard operation
arnold copied to clipboard

[CLI] Add an option to disable version check

Open madmatah opened this issue 4 years ago • 0 comments

Feature Request

Arnold CLI is executing a HTTP request to github each time it's executed, to retrieve the latest Arnold release.

This is not always a desired behavior because :

  • It can slow down bulk scripts that are using Arnold CLI
  • It can trigger Github's rate limiter

In this latter case, arnold CLI fails with the following error : jq: error (at <stdin>:1): Cannot index object with number

because Github is returning the following response :

{"message":"API rate limit exceeded for X.X.X.X. (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"}

Describe the solution you'd like

An option to disable version checking in arnold CLI would be appreciated.

madmatah avatar Apr 07 '21 10:04 madmatah