Skip to content

Conversation

@DanielG
Copy link
Collaborator

@DanielG DanielG commented Aug 17, 2019

Commit 273dacf ("Extract installLibraries and InstallExes from
installAction") makes 'getInstalledPackages' get passed the
pre-configCompilerEx ProgramDb which will cause pattern match failures when
the code tries to lookup ghc-pkg in the progdb.

As far as I can tell on master currently any v2-install invocation would fail with

Distribution/Simple/GHC.hs:1967:5-56: Irrefutable pattern failed for pattern Just ghcPkgProg

but I only tested with cabal v2-install --lib Cabal-3.0.0.0.


Please include the following checklist in your PR:

  • Patches conform to the coding conventions.
  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.
  • If the change is docs-only, [ci skip] is used to avoid triggering the build bots.

@DanielG
Copy link
Collaborator Author

DanielG commented Aug 17, 2019

FYI this also needs a backport to the 3.0 branch if we're intending to cut a cabal-install release from that eventually.

Commit 273dacf ("Extract installLibraries and InstallExes from
installAction") makes 'getInstalledPackages' get passed the
pre-configCompilerEx ProgramDb which will cause pattern match failures when
the code tries to lookup ghc-pkg in the progdb.
@DanielG DanielG force-pushed the fix-v2-install-progdb branch from ba009ec to 1ad6c0f Compare August 20, 2019 15:12
@phadej phadej self-requested a review August 22, 2019 15:14
@DanielG DanielG merged commit a7a9766 into haskell:master Aug 22, 2019
@23Skidoo
Copy link
Member

/cc @fgaz

23Skidoo pushed a commit that referenced this pull request Aug 27, 2019
Fix v2-install ProgramDb confusion

(cherry picked from commit a7a9766)
23Skidoo pushed a commit that referenced this pull request Aug 27, 2019
Fix v2-install ProgramDb confusion

(cherry picked from commit a7a9766)
@23Skidoo
Copy link
Member

Cherry-picked to 3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants