Skip to content

Bootstrap generation fix for exe-only dependencies #8042

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

Merged
merged 1 commit into from
Mar 13, 2022

Conversation

robx
Copy link
Collaborator

@robx robx commented Mar 11, 2022

(Not entirely sure what to do with this patch. It's a fix for a bug in bootstrap generation that was triggered by adding a dependency to the cabal-install executable in #7921, but that dependency is no longer there.)

Before this change, with 'signal' as a dependency for
cabal-install:exe:cabal, the dependency list ended

...
cabal-install
signal
cabal-install

The first copy of "cabal-install" is the library target, which
is a dependency of the final executable target. But when
the bootstrap build encounters "cabal-install", it tries
building the executable target right away, which fails due
to the missing "signal" dependency.


  • Patches conform to the coding conventions.
  • No changelog-relevant changes.
  • No documentation changes needed.

Copy link
Member

@Mikolaj Mikolaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say in the comment what is the scenario in which this can fail (which dep, etc.) and merge it.

@Kleidukos Kleidukos added merge me Tell Mergify Bot to merge and removed attention: needs-review labels Mar 12, 2022
This isn't currently a concrete problem, but surfaced when adding
a dependency to cabal-install:exe.
@jneira jneira force-pushed the fix-bootstrap-selfref branch from c17b976 to 4416ea5 Compare March 12, 2022 22:28
@mergify mergify bot merged commit a19d0a9 into haskell:master Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Tell Mergify Bot to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants