Skip to content

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed May 4, 2024
2 parents f278290 + 5f4e324 commit 226c2a0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 11 deletions.
23 changes: 18 additions & 5 deletions doc/build_command.md
Expand Up @@ -249,6 +249,8 @@ specified Cabal flag for the specified package. Stack will report an error if:

This overrides:

* any Cabal flag specifications for the package in the snapshot;

* any Cabal flag specifications for the package in Stack's project-level
configuration file (`stack.yaml`); and

Expand All @@ -258,8 +260,19 @@ This overrides:
for all packages (project packages and dependencies) (whether or not a flag of
that name is a flag of the package).

This overrides any Cabal flag specifications for packages in Stack's
project-level configuration file (`stack.yaml`).
This overrides:

* any Cabal flag specifications for packages in the snapshot; and

* any Cabal flag specifications for packages in Stack's project-level
configuration file (`stack.yaml`).

!!! note

For a package included directly in the snapshot, if the Cabal flag
specifications differ from the Cabal flag specifications (if any) in the
snapshot, then the package will automatically be promoted to be an
[extra-dep](#extra-deps).

!!! note

Expand All @@ -269,9 +282,9 @@ project-level configuration file (`stack.yaml`).
!!! warning

Stack creates snapshots when building immutable dependencies of projects.
The names of Cabal flags that have been set manually as disabled distinguish
one such snapshot from another. However, the names of Cabal flags that have
been set manually as enabled do not do so.
The names of Cabal flags that have been unset manually distinguish one such
snapshot from another. However, the names of Cabal flags that have been set
manually do not do so.

### `--[no-]force-dirty` flag

Expand Down
18 changes: 12 additions & 6 deletions doc/yaml_configuration.md
Expand Up @@ -307,9 +307,15 @@ flags:
flag-name: true
~~~

If a specified Cabal flag for a package included directly in a snapshot is
different to the Cabal flag specified for that package in the snapshot, then the
package will automatically be promoted to be an [extra-dep](#extra-deps).
This overrides all Cabal flag specifications (if any) for the specified packages
in the snapshot.

!!! note

For a package included directly in the snapshot, if the Cabal flag
specifications differ from the Cabal flag specifications (if any) in the
snapshot, then the package will automatically be promoted to be an
[extra-dep](#extra-deps).

!!! note

Expand All @@ -319,9 +325,9 @@ package will automatically be promoted to be an [extra-dep](#extra-deps).
!!! warning

Stack creates snapshots when building immutable dependencies of projects.
The names of Cabal flags that have been set manually as disabled distinguish
one such snapshot from another. However, the names of Cabal flags that have
been set manually as enabled do not do so.
The names of Cabal flags that have been unset manually distinguish one such
snapshot from another. However, the names of Cabal flags that have been set
manually do not do so.

### drop-packages

Expand Down

0 comments on commit 226c2a0

Please sign in to comment.