File tree 3 files changed +8
-7
lines changed
cabal-install/Distribution/Client 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ project are:
67
67
.. cfg-field :: optional-packages: package location list (space or comma-separated)
68
68
:synopsis: Optional project packages.
69
69
70
- :default: `` ./*/*.cabal ``
70
+ :default: empty
71
71
72
72
Like :cfg-field: `packages `, specifies a list of package locations
73
73
containing local packages to be built. Unlike :cfg-field: `packages `,
@@ -90,13 +90,14 @@ project are:
90
90
91
91
All local packages are *vendored *, in the sense that if other packages
92
92
(including external ones from Hackage) depend on a package with the name
93
- of a local package, the local package is preferentially used. This
94
- motivates the default settings::
93
+ of a local package, the local package is preferentially used.
94
+ For subdirectories to be considered local packages, the following setting
95
+ can be used::
95
96
96
97
packages: ./*.cabal
97
98
optional-packages: ./*/*.cabal
98
99
99
- ...any package can be vendored simply by making a checkout in the
100
+ ...then any package can be vendored simply by making a checkout in the
100
101
top-level project directory, as might be seen in this hypothetical
101
102
directory layout::
102
103
Original file line number Diff line number Diff line change @@ -544,9 +544,6 @@ readProjectLocalConfigOrDefault verbosity distDirLayout = do
544
544
-- We expect a package in the current directory.
545
545
projectPackages = [ " ./*.cabal" ],
546
546
547
- -- This is to automatically pick up deps that we unpack locally.
548
- projectPackagesOptional = [ " ./*/*.cabal" ],
549
-
550
547
projectConfigProvenance = Set. singleton Implicit
551
548
}
552
549
Original file line number Diff line number Diff line change
1
+ synopsis: Change 'optional-packages' default to empty, when cabal.project is mising.
2
+ issues: #6739
3
+ prs: #6740
You can’t perform that action at this time.
0 commit comments