Skip to content

Commit 9b92dd2

Browse files
authored
Merge pull request #9960 from haskell/mergify/bp/3.12/pr-9943
Add `initialBuildSteps` removal notice (backport #9943)
2 parents d871c1e + f48c4e2 commit 9b92dd2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

release-notes/Cabal-3.12.0.0.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@ Cabal and Cabal-syntax 3.12.0.0 changelog and release notes
6161
added. It can now be used in the `default-language` and `other-languages`
6262
fields, and will be offered as an option by `cabal init`.
6363
64+
- Remove `initialBuildSteps` from `Distribution.Simple.Build` [#9474](https://github.com/haskell/cabal/pull/9474)
65+
66+
Calling `initialBuildSteps` to prepare source files for a package is error
67+
prone, as `initialBuildSteps` only handles things like the paths module
68+
and nothing else.
69+
70+
To mimick `initialBuildSteps` behaviour when there is no custom Setup, you
71+
can call `repl_setupHooks`.
72+
73+
If you are dealing with a custom setup, you have to invoke
74+
`./Setup repl --repl-multi-file`.
75+
6476
### Other changes
6577
6678
- `cabal init` should not suggest Cabal < 2.0 [#8680](https://github.com/haskell/cabal/issues/8680)

0 commit comments

Comments
 (0)