Skip to content

Commit cc7b8e0

Browse files
committed
Fix #6931 Use absolute builddir with withCabal
1 parent 6ac482d commit cc7b8e0

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Other enhancements:
2222

2323
Bug fixes:
2424

25+
* On Windows, Stack's `build` command now accepts a build directory that is a
26+
long path.
27+
2528
## v3.11.1 - 2026-05-30
2629

2730
**Changes since v3.9.3:**

src/Stack/Build/ExecuteEnv.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ withSingleContext
732732
, keepGhcRts = False
733733
}
734734
menv <- liftIO $ config.processContextSettings envSettings
735-
distRelativeDir' <- distRelativeDir
735+
distDir' <- distDirFromDir pkgDir
736736
setupexehs <-
737737
-- Avoid broken Setup.hs files causing problems for simple build
738738
-- types, see:
@@ -913,7 +913,7 @@ withSingleContext
913913
<> cabalPackageArg
914914

915915
setupArgs =
916-
("--builddir=" ++ toFilePathNoTrailingSep distRelativeDir') : args
916+
("--builddir=" ++ toFilePathNoTrailingSep distDir') : args
917917

918918
depToMungedPkgNames ::
919919
PackageName

0 commit comments

Comments
 (0)