Skip to content

Commit e6aadf4

Browse files
committed
Change cabal new-build to unconditionally build all packages.
This changes the behavior to NOT look at the current working directory to decide what to build. Instead it always goes and builds everything, if you don't specify any arguments. Requested by @cocreature. Please discuss! I haven't adjusted the tests in integration-tests2 yet. Signed-off-by: Edward Z. Yang <[email protected]> In this variation, being inside a package directory results in only that package being built. Signed-off-by: Edward Z. Yang <[email protected]>
1 parent 232bdf6 commit e6aadf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cabal-install/Distribution/Client/TargetSelector.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ resolveTargetSelectors [] [] [] =
447447
([TargetSelectorNoTargetsInProject], [])
448448

449449
resolveTargetSelectors [] _opinfo [] =
450-
([TargetSelectorNoTargetsInCwd], [])
450+
([], [TargetAllPackages Nothing])
451451

452452
resolveTargetSelectors ppinfo _opinfo [] =
453453
([], [TargetPackage TargetImplicitCwd (head ppinfo) Nothing])

0 commit comments

Comments
 (0)