Skip to content

Conversation

@fredrikekre
Copy link
Member

Add [offline] to prompt in offline mode and make it possible to use JULIA_PKG_OFFLINE=true to run in offline mode conveniently across sessions.

I think the main usecase here is when you are offline for a longer time (flights, public transport etc) and it might be annoying to have to using Pkg; Pkg.offline() every Julia startup so I think it is nice to be able to configure this outside of Julia for multiple sessions. Also, in order to remember that you have indeed set this variable, this adds [offline] to the Pkg prompt:

(@v1) [offline] pkg>

@fredrikekre fredrikekre requested a review from KristofferC May 5, 2020 14:19
make it possible to use JULIA_PKG_OFFLINE=true
to run in offline mode conveniently across sessions.
@fredrikekre fredrikekre force-pushed the fe/offline-prompt branch from 78e1e39 to 35abfb3 Compare May 5, 2020 14:22
@fredrikekre fredrikekre merged commit 69cbb81 into master May 6, 2020
@fredrikekre fredrikekre deleted the fe/offline-prompt branch May 6, 2020 08:12
fredrikekre added a commit that referenced this pull request May 29, 2020
make it possible to use JULIA_PKG_OFFLINE=true
to run in offline mode conveniently across sessions (#1809).

(cherry picked from commit 69cbb81, PR #1809)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant