Optional speed up to chezmoi doctor
halloleo opened this issue · comments
Is your feature request related to a problem? Please describe.
When using chezmoi doctor
on a machine without internet access, it takes a long time to return (30sec).
I assume this is because the latest-version
check has to timeout in order to fail.
Describe the solution you'd like
A command line flag to the doctor command telling doctor
to do no internet requests, for example "--no-network
".
Describe alternatives you've considered
-
An alternative could be in the
doctor
command to get rid of thelatest-version
test altogether, but this might break the expectations of the "normal" user who has internet access. -
An alternative option name could be
--fast
, which in future could cover other doctor checks which take in some special environments unreasonably long.
Additional context
One problem with a --no-network
flag is what to print in the output when no internet request was made. I suggest "not checked".