-
Notifications
You must be signed in to change notification settings - Fork 697
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
Account for .buildinfo in repl when build-type: Configure #9440
Conversation
c5bcfe5
to
7565c6c
Compare
Thanks! I'm trying to add a test, do not merge yet. |
You still need a second review. But if you want to block merging, mark it as a draft. (On the right sidebar) |
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.
How do we know if we have missed another one? Are these meant to be all the pre
hooks? What about preTest
and preBench
?
5ca99a1
to
d69d68a
Compare
@andreabedini We're indeed missing According to my judgement this is a historical oversight and we should read information from .buildinfo for preTest and preBench too. I'll fix the patch. Unfortunately, I don't think there is a good systematic way of enforcing that all pre-hooks are overwritten, since the way these user hooks are built is incrementally from |
d69d68a
to
ed10567
Compare
@andreabedini done, I've updated the patch to also read additional build information for preTest and preBench. Even if we cannot enforce that all pre-hooks that are not pre-conf are updated here, at least all existing pre-hooks are now accounted for. |
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.
This is missing a changelog entry, but apart from this I approve of the changes. :)
In `autoconfUserHooks` we were not updating the `preRepl` hook to read additional build information from /package/@.buildinfo@. Additionally updates `autoconfUserHooks` to read additional build info information for the remaining pre-hooks that are not pre-conf. Fixes haskell#9401
ed10567
to
fcc78e7
Compare
@Kleidukos I've added the changelog, I'm just missing your final approval. |
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.
Fantastic, thank you!
@Mergifyio backport 3.10 |
✅ Backports have been created
|
In `autoconfUserHooks` we were not updating the `preRepl` hook to read additional build information from /package/@.buildinfo@. Additionally updates `autoconfUserHooks` to read additional build info information for the remaining pre-hooks that are not pre-conf. Fixes #9401 (cherry picked from commit ee1e6b8) # Conflicts: # Cabal/src/Distribution/Simple.hs
…9440) (#9612) * Account for .buildinfo in repl when build-type: Configure (#9440) In `autoconfUserHooks` we were not updating the `preRepl` hook to read additional build information from /package/@.buildinfo@. Additionally updates `autoconfUserHooks` to read additional build info information for the remaining pre-hooks that are not pre-conf. Fixes #9401 (cherry picked from commit ee1e6b8) # Conflicts: # Cabal/src/Distribution/Simple.hs * Update Simple.hs --------- Co-authored-by: Rodrigo Mesquita <rodrigo.m.mesquita@gmail.com> Co-authored-by: Hécate Moonlight <Kleidukos@users.noreply.github.com>
@alt-romes @Kleidukos What happened to the test? |
In `autoconfUserHooks` we were not updating the `preRepl` hook to read additional build information from /package/@.buildinfo@. Additionally updates `autoconfUserHooks` to read additional build info information for the remaining pre-hooks that are not pre-conf. Fixes haskell#9401
In
autoconfUserHooks
we were not updating thepreRepl
hook to read additional build information from /package/@.buildinfo@.Fixes #9401