Merge pull request #9649 from haskell/wip/static-pre-releases
[cabal.git] / changelog.d / pr-8726-2
blobd59a8ac4dc25c9f058cbf8d6280cb4bd2cbcdbfd
1 synopsis: Add --promised-dependency flag to ./Setup configure interface
2 packages: Cabal
3 prs: #8726
5 description: {
7 There is a new flag `--promised-dependency`  to allow users to
8 configure a package *without* having previously built the dependency.
9 Instead, we promise to the configure phase that we will have built it
10 by the time we build the package. This allows us to configure all the
11 packages we intend to load into the repl without building any
12 dependenices which we will load in the same session, because the
13 promise is satisifed due to loading the package and it's dependency
14 into one multi-session which ensures the dependency is built before
15 it is needed.
17 A user of ./Setup configure specifies a promised dependency by
18 using the "--promised-dependency" flag with a normal dependency specification. For example:
20 ```
21    '--promised-dependency=cabal-install-solver=cabal-install-solver-3.9.0.0-inplace'
22 ```