-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Enforce a global "offline" setting #6252
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small fix for no internet case where --offline
isn't set, flipped bool.
BTW, I'd like the offline flag/setting to make all caches valid rather than stale to fix #2022, but that can be a seperate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments but looks good overall.
There’s also a few places where the cache still can expire in offline mode, I guess that’s what you meant to add as a follow-up in #6252 (comment)
Draft because changes requested. |
Do not attempt to fetch anything when the "--offline" flag is passed on the command line or when "offline" is set to true in a configuration file.
I should point out that I don't see any way to guarantee that an offline flag is being enforced everywhere. I'm probably missing some cases and it would be an iterative process to fully implement this. |
Do not attempt to fetch anything when the "--offline" flag is
passed on the command line or when "offline" is set to true in
a configuration file.