-
Notifications
You must be signed in to change notification settings - Fork 703
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
Reinstate 'initialBuildSteps' function #9950
Conversation
fa07fe7
to
3f58f3d
Compare
Should we put a |
2dde79e
to
9c9caf1
Compare
Yes, good idea. I have added a deprecation pragma, pointing users towards |
@ulysses4ever: once this lands, the decision to backport it for inclusion in 3.12.1.0 belongs to you and the other, yet undetermined, release managers for 3.12.1.0. Me and @ffaf1 would be glad to help you make the decision. For a start, @sheaf has determined, this change is non-major-forcing, so we don't have to wait for 3.14:
|
A link with some more details of the feature proposed as a replacement for this mechanism in the deprecation notice: #9857 (comment) BTW, @mpilgrem, what would be a sufficient deprecation period for you? We may not state it formally in the code nor the release notes, but hinting about it in this PR is already a service to the users. |
9c9caf1
to
8d8b874
Compare
Could you also include a changelog that says what this PR does? We are going to fix the release notes for 3.12.0.0 too include #9943, so it would be good to mention in 3.12.1.0 that this change has been reverted. |
#9943 is merged, so let's please review if the two release note entries don't contradict each other. :) |
@Mikolaj, I think the deprecation period needs only be long enough to encourage Stack users who want to use GHC > 9.8 to upgrade to Stack 2.15.7, once it is released. For people who use GHCup to manage versions of Stack, that means long enough to get Stack 2.15.7 on to GHCup's list and as 'recommended'. For people who use Stack to manage Stack, that means long enough to command To recap, what Stack 2.15.5 (and earlier) does is, when somebody commands What Stack 2.15.7 does is (a) if In that regard, I see your reinstatement of let compBuildDir = interpretSymbolicPathLBI lbi $ componentBuildDir lbi clbi whereas mine has only the equivalent of: let compBuildDir = componentBuildDir lbi clbi so, I had better look more closely at that before Stack 2.15.7 is actually released. EDIT: I think What the Haddock documentation of |
@mpilgrem: thank you for your input. In that case, If nobody requests a longer deprecation period, we may get rid of
Ouch, well spotted. Moreover, it's introduced in a rather big PR, probably too disruptive to be backported. This means the backport of this here PR to branch 3.12 has to be tweaked (or @sheaf may choose to tweaks things already here).
Noted. Unintentional, probably. |
8d8b874
to
27d9daa
Compare
I've added a changelog entry. I think this should be good to go. I will put up a backport for the 3.12 branch if we are OK to proceed with this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @sheaf for the offer to prepare the backport, given that it will need to be different than this PR.
If nobody objects, I'm going to fast-track this PR in a couple of hours, since it fixes a problem in the just released 3.12.0.0.
@mergify rebase |
This patch reinstates the 'initialBuildSteps' function, as it is used by stack in its implementation of the multi-repl feature. A deprecation warning has been added to that function: calling it does not suffice to prepare the sources for a package, as there are other steps that one might also need to perform: - running pre-processors (such as alex/happy) - running pre-build hooks or custom logic (in build-type: Hooks or build-type: Custom or Configure) Consumers wanting to prepare the sources of a package, e.g. in order to launch a REPL session, are advised to run `Setup repl --repl-multi-file=<fn>` instead. Fixes #9856
✅ Branch has been successfully rebased |
27d9daa
to
dd74e92
Compare
@mergify rebase |
☑️ Nothing to do
|
@mergify backport 3.12 |
✅ Backports have been created
|
Reinstate 'initialBuildSteps' function (backport #9950)
This patch reinstates the 'initialBuildSteps' function, as it is used by stack in its implementation of the multi-repl feature.
A deprecation warning has been added to that function: calling it does not suffice to prepare the sources for a package, as there are other steps that one might also need to perform:
Consumers wanting to prepare the sources of a package, e.g. in order to launch a REPL session, are advised to run
setup repl --repl-multi-file=<fn>
instead.Fixes #9856