-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configlet shouldn't *REQUIRE* internet access #683
Comments
Just went through the docs and there is an |
Thanks for creating this issue. Sorry for the inconvenience.
I think we really do want So I think we want the current behavior, but with a better error message. It should advise the user to pass |
That sounds great! It was only in looking up other things I noticed the |
Great. Thanks again for reporting the problem. I'll re-open this issue so that it'll be closed automatically when we merge #684.
Me too. Being able to use There was already a good error message for the more obscure situation of "no prob-specs cache, but $ configlet sync --offline
Error: --offline was passed, but there is no cached 'problem-specifications' repo at:
'/home/foo/.cache/exercism/configlet/problem-specifications'
Please run once without --offline to clone 'problem-specifications' to that location.
If you currently have no (or limited) network connectivity, but you do have a local
'problem-specifications' elsewhere, you can copy it to the above location and then
use it with --offline But configlet didn't cover the case reported in this issue. And there are some similar errors that we'll improve in the future. |
Before this commit, running a `configlet sync` or `configlet info` command when all these conditions were satisfied: - The problem-specifications cache was present and valid - and the --offline option was not passed - but we failed to update the cache due to a network error produced an unhelpful error: $ configlet sync Updating cached 'problem-specifications' data... fatal: unable to access 'https://github.com/exercism/problem-specifications/': Could not resolve host: github.com failed to fetch 'main' in problem-specifications directory: '/home/foo/.cache/exercism/configlet/problem-specifications' exec.nim(68) execAndCheck Error: unhandled exception: [OSError] With this commit, configlet explains what the user can do next: $ configlet sync Updating cached 'problem-specifications' data... fatal: unable to access 'https://github.com/exercism/problem-specifications/': Could not resolve host: github.com failed to fetch 'main' in problem-specifications directory: '/home/foo/.cache/exercism/configlet/problem-specifications' Error: Unable to update the problem-specifications cache. You can either: - ensure that you have network connectivity, and run the same configlet command again - or add the '--offline' option to skip updating the cache The most recent commit in the problem-specifications cache is: commit 7012a73188698b2b7a2c340c1753d0198a38d8fa Author: Katrina Owen <katrina.owen@gmail.com> CommitDate: Mon, 17 Oct 2022 16:36:08 +0200 Change wording in tournament instructions (#2135) Fixes: #683
I had some time to do a few things with a track, but no internet access. I had run this command the day before, but upon running it configlet crashes. I was able to set up a hotspot really quickly but, really, it shouldn't need internet access for something like this. Issue a warning that 'problem-specifications' might not be up to date? Sure! But fail completely? Absolutely not.
The exact error:
This is but one example I can easily show, but all operations should succeed (with warnings if necessary) without internet access, unless the operation itself access the internet (like you don't need internet to
git commit
but do need it togit pull
for instance).The text was updated successfully, but these errors were encountered: