Commit b8b7080b authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Merge pull request #2204 from lspitzner/sandbox-delete

'sandbox delete': exit with 0 even with 'require-sandbox: True'
parents 5ef7d84b 65a19830
......@@ -326,7 +326,10 @@ sandboxInit verbosity sandboxFlags globalFlags = do
-- | Entry point for the 'cabal sandbox delete' command.
sandboxDelete :: Verbosity -> SandboxFlags -> GlobalFlags -> IO ()
sandboxDelete verbosity _sandboxFlags globalFlags = do
(useSandbox, _) <- loadConfigOrSandboxConfig verbosity globalFlags mempty
(useSandbox, _) <- loadConfigOrSandboxConfig
verbosity
globalFlags { globalRequireSandbox = Flag False }
mempty
case useSandbox of
NoSandbox -> warn verbosity "Not in a sandbox."
UseSandbox sandboxDir -> do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment