Skip to content

Commit 9accafe

Browse files
committed
Don't call 'canonicalizePath' on a path we just removed.
Fixes #3214.
1 parent ee56fe6 commit 9accafe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cabal-install/Distribution/Client/Sandbox.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,9 @@ sandboxDelete verbosity _sandboxFlags globalFlags = do
371371
++ "'.\nAssuming a shared sandbox. Please delete '"
372372
++ sandboxDir ++ "' manually."
373373

374-
notice verbosity $ "Deleting the sandbox located at " ++ sandboxDir
375-
removeDirectoryRecursive sandboxDir
376-
377374
absSandboxDir <- canonicalizePath sandboxDir
375+
notice verbosity $ "Deleting the sandbox located at " ++ absSandboxDir
376+
removeDirectoryRecursive absSandboxDir
378377

379378
let
380379
pathInsideSandbox = isPrefixOf absSandboxDir

0 commit comments

Comments
 (0)