Closed indirect closed 2 years ago
I'd recommend creating a GitHub personal access token for use by chezmoi, as described here.
It is technically possible for chezmoi to cache the last output of the various gitHub*
template functions and re-use the last output when a rate limit is encountered, but using a personal access token is a more correct and much simpler solution :)
Sounds good, thanks for the suggestion!
What exactly are you trying to do?
Trying to run
chezmoi status
after getting rate-limited by GitHub (for unrelated reasons).What have you tried so far?
I have run
chezmoi status --verbose
.Where else have you checked for solutions?
Output of any commands you've tried with
--verbose
flagThe contents of
private_dot_ssh/private_authorized_keys.tmpl
:Output of
chezmoi doctor
Additional context
I can understand
chezmoi apply
failing if I am rate limited, since it can't fetch my keys from GitHub. My next idea was to runapply
targeting just the specific files that I want to update—but to know which files need updating, I have to runstatus
. And apparently juststatus
also requires a successful API call to GitHub to get my keys, I am guessing to diff with the file on disk and report status? In that case, maybe it should be possible to skip that file, or warn that the API request failed, or something?I can work around it by temporarily adding any templates that talk to GitHub to my
.chezmoiignore
, but it would be nice if it didn't abort the entire process.Thanks!