From c80ee7583ef98a1448309ea4d7dd05b15c91b082 Mon Sep 17 00:00:00 2001 From: ffaf1 Date: Mon, 29 Apr 2024 13:43:51 +0200 Subject: [PATCH] Add `initialBuildSteps` removal notice (#9943) * Add `initialBuildSteps` removal notice And suggestion on what to use (`preBuildComponent`) instead. * Update release-notes/Cabal-3.12.0.0.md Co-authored-by: sheaf --- release-notes/Cabal-3.12.0.0.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/release-notes/Cabal-3.12.0.0.md b/release-notes/Cabal-3.12.0.0.md index 407f88e5a..3825c9e89 100644 --- a/release-notes/Cabal-3.12.0.0.md +++ b/release-notes/Cabal-3.12.0.0.md @@ -61,6 +61,18 @@ Cabal and Cabal-syntax 3.12.0.0 changelog and release notes added. It can now be used in the `default-language` and `other-languages` fields, and will be offered as an option by `cabal init`. +- Remove `initialBuildSteps` from `Distribution.Simple.Build` [#9474](https://github.com/haskell/cabal/pull/9474) + + Calling `initialBuildSteps` to prepare source files for a package is error + prone, as `initialBuildSteps` only handles things like the paths module + and nothing else. + + To mimick `initialBuildSteps` behaviour when there is no custom Setup, you + can call `repl_setupHooks`. + + If you are dealing with a custom setup, you have to invoke + `./Setup repl --repl-multi-file`. + ### Other changes - `cabal init` should not suggest Cabal < 2.0 [#8680](https://github.com/haskell/cabal/issues/8680) -- 2.11.4.GIT