We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fc266e commit 7d961ebCopy full SHA for 7d961eb
cabal-install/Distribution/Client/CmdSdist.hs
@@ -219,6 +219,7 @@ packageToSdist verbosity projectRootDir format outputFile pkg = do
219
dir <- case packageSource pkg of
220
LocalUnpackedPackage path -> return path
221
_ -> die' verbosity "The impossible happened: a local package isn't local"
222
+ oldPwd <- getCurrentDirectory
223
setCurrentDirectory dir
224
225
let norm flag = fmap ((flag, ) . normalise)
@@ -286,6 +287,7 @@ packageToSdist verbosity projectRootDir format outputFile pkg = do
286
287
write (Zip.fromArchive archive)
288
when (outputFile /= "-") $
289
notice verbosity $ "Wrote zip sdist to " ++ outputFile ++ "\n"
290
+ setCurrentDirectory oldPwd
291
292
--
293
0 commit comments