-
Notifications
You must be signed in to change notification settings - Fork 843
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
Global --offline
flag to prevent internet access
#1594
Comments
I'd like this flag too. My use case is that I want to manage installing ghc and packages via the system package manager (Nix), and only use stack for the command line interface (e.g. to support using intero from emacs). I want to be able to tell stack to not go behind my back and download/install things. |
My fear is that stack will fail if it doesn't have internet access. Is this ever possible? |
For context: I just started out learning haskell and usually only code while commuting via train. The internet connection is spotty at best and an offline mode, similar to the one of yarn, where downloads are cached globally would be awesome 👍 |
@marvinhagemeister the download already are cached globally. This flag is for the opposite behaviour — fail in presence of internet access. |
Oh I see, sorry for hijacking this thread |
#2982 (comment) is related. |
Potential approach: #3813 |
I, a former Haskell course TA in China (mainland), under Internet blocking of GFW, need this. Many students I helped had suffered from:
Meanwhile I had been suffering from telling them to use domestic mirror (e.g. TUNA’s (howto)) which not always solve the network issue, or to use VPN (or ShadowSocks and to set HTTP proxy for shell). |
I think this might relate to #5319 |
This flag would skip attempting to download any resources. In the case that a command can still do something reasonable without the download, it should proceed onwards, possibly emitting a warning.
The text was updated successfully, but these errors were encountered: