Don't do update checks for all commands
This commit is contained in:
parent
2774f026e8
commit
706fe1ffcc
@ -1390,7 +1390,16 @@ Report bugs at <https://gitlab.haskell.org/haskell/ghcup-hs/issues>|]
|
|||||||
race_ (liftIO $ runLogger $ flip runReaderT dirs $ cleanupTrash)
|
race_ (liftIO $ runLogger $ flip runReaderT dirs $ cleanupTrash)
|
||||||
(threadDelay 5000000 >> runLogger ($(logWarn) [i|Killing cleanup thread (exceeded 5s timeout)... please remove leftover files in #{recycleDir} manually|]))
|
(threadDelay 5000000 >> runLogger ($(logWarn) [i|Killing cleanup thread (exceeded 5s timeout)... please remove leftover files in #{recycleDir} manually|]))
|
||||||
|
|
||||||
lookupEnv "GHCUP_SKIP_UPDATE_CHECK" >>= \case
|
case optCommand of
|
||||||
|
Nuke -> pure ()
|
||||||
|
Whereis _ _ -> pure ()
|
||||||
|
DInfo -> pure ()
|
||||||
|
ToolRequirements -> pure ()
|
||||||
|
ChangeLog _ -> pure ()
|
||||||
|
#if defined(BRICK)
|
||||||
|
Interactive -> pure ()
|
||||||
|
#endif
|
||||||
|
_ -> lookupEnv "GHCUP_SKIP_UPDATE_CHECK" >>= \case
|
||||||
Nothing -> runLogger $ flip runReaderT s' $ checkForUpdates
|
Nothing -> runLogger $ flip runReaderT s' $ checkForUpdates
|
||||||
Just _ -> pure ()
|
Just _ -> pure ()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user