@@ -251,6 +251,8 @@ specified Cabal flag for the specified package. Stack will report an error if:
251
251
252
252
This overrides:
253
253
254
+ * any Cabal flag specifications for the package in the snapshot;
255
+
254
256
* any Cabal flag specifications for the package in Stack's project-level
255
257
configuration file (` stack.yaml ` ); and
256
258
@@ -260,8 +262,19 @@ This overrides:
260
262
for all packages (project packages and dependencies) (whether or not a flag of
261
263
that name is a flag of the package).
262
264
263
- This overrides any Cabal flag specifications for packages in Stack's
264
- project-level configuration file (` stack.yaml ` ).
265
+ This overrides:
266
+
267
+ * any Cabal flag specifications for packages in the snapshot; and
268
+
269
+ * any Cabal flag specifications for packages in Stack's project-level
270
+ configuration file (` stack.yaml ` ).
271
+
272
+ !!! note
273
+
274
+ For a package included directly in the snapshot, if the Cabal flag
275
+ specifications differ from the Cabal flag specifications (if any) in the
276
+ snapshot, then the package will automatically be promoted to be an
277
+ [extra-dep](#extra-deps).
265
278
266
279
!!! note
267
280
@@ -271,9 +284,9 @@ project-level configuration file (`stack.yaml`).
271
284
!!! warning
272
285
273
286
Stack creates snapshots when building immutable dependencies of projects.
274
- The names of Cabal flags that have been set manually as disabled distinguish
275
- one such snapshot from another. However, the names of Cabal flags that have
276
- been set manually as enabled do not do so.
287
+ The names of Cabal flags that have been unset manually distinguish one such
288
+ snapshot from another. However, the names of Cabal flags that have been set
289
+ manually do not do so.
277
290
278
291
### ` --[no-]force-dirty ` flag
279
292
0 commit comments