File tree Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 4
4
5
5
Release notes:
6
6
7
+ * The hash that Stack uses to distinguish one build plan from another has
8
+ changed for plans that set (as opposed to unset) manually Cabal flags for
9
+ immutable dependencies. This will cause Stack to rebuild dependencies for such
10
+ plans.
11
+
7
12
** Changes since v2.15.6.1:**
8
13
9
14
Major changes:
@@ -14,6 +19,10 @@ Other enhancements:
14
19
15
20
Bug fixes:
16
21
22
+ * The hashes that Stack uses to distinguish one build plan from another now
23
+ include the Cabal flags for immutable dependencies set manually. Previously,
24
+ in error, only such flags that were unset manually were included.
25
+
17
26
## v2.15.6.1 (release candidate)
18
27
19
28
Release notes:
Original file line number Diff line number Diff line change @@ -281,13 +281,6 @@ This overrides:
281
281
In order to set a Cabal flag for a GHC boot package, the package must be
282
282
specified as an [extra-dep](yaml_configuration.md#extra-deps).
283
283
284
- !!! warning
285
-
286
- Stack creates snapshots when building immutable dependencies of projects.
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.
290
-
291
284
### ` --[no-]force-dirty ` flag
292
285
293
286
Default: Disabled
Original file line number Diff line number Diff line change @@ -322,13 +322,6 @@ in the snapshot.
322
322
In order to set a Cabal flag for a GHC boot package, the package must be
323
323
specified as an [extra-dep](#extra-deps).
324
324
325
- !!! warning
326
-
327
- Stack creates snapshots when building immutable dependencies of projects.
328
- The names of Cabal flags that have been unset manually distinguish one such
329
- snapshot from another. However, the names of Cabal flags that have been set
330
- manually do not do so.
331
-
332
325
# ## drop-packages
333
326
334
327
[:octicons-tag-24 : 2.1.1](https://github.com/commercialhaskell/stack/releases/tag/v2.1.1)
Original file line number Diff line number Diff line change @@ -194,9 +194,7 @@ depPackageHashableContent dp =
194
194
PLMutable _ -> pure " "
195
195
PLImmutable pli -> do
196
196
let flagToBs (f, enabled) =
197
- if enabled
198
- then " "
199
- else " -" <> fromString (C. unFlagName f)
197
+ (if enabled then " " else " -" ) <> fromString (C. unFlagName f)
200
198
flags = map flagToBs $ Map. toList dp. depCommon. flags
201
199
ghcOptions = map display dp. depCommon. ghcOptions
202
200
cabalConfigOpts = map display dp. depCommon. cabalConfigOpts
You can’t perform that action at this time.
0 commit comments