Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initialBuildSteps removal notice (backport #9943) #9960

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions release-notes/Cabal-3.12.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading