Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Apr 9, 2024

Extra-packages listed in a cabal project are to be fetched from hackage,
and will be in memory as 'NamedPackages' rather than resolved to
'SpecificSourcePackage'.

On install, we need to make source-dists for all the specific source
packages, and fetch other packages from hackage. Since extra-packages
are already 'NamedPackages', we simply return them along the sdistize-d
specific source packages and the hackage source packages -- they will be
correctly fetched from Hackage from install.

Previously, cabal install on a project with extra-packages would
fail because the branch of 'NamedPackage' for 'PackageSpecifier' was
simply unimplemented.

Fixes #8848


This is an automatic backport of pull request #9719 done by [Mergify](https://mergify.com).

@ffaf1 ffaf1 added merge me Tell Mergify Bot to merge and removed attention: needs-review labels Apr 9, 2024
Extra-packages listed in a cabal project are to be fetched from hackage,
and will be in memory as 'NamedPackages' rather than resolved to
'SpecificSourcePackage'.

On install, we need to make source-dists for all the specific source
packages, and fetch other packages from hackage. Since extra-packages
are already 'NamedPackages', we simply return them along the sdistize-d
specific source packages and the hackage source packages -- they will be
correctly fetched from Hackage from install.

Previously, cabal install <tgt> on a project with extra-packages would
fail because the branch of 'NamedPackage' for 'PackageSpecifier' was
simply unimplemented.

Fixes #8848

(cherry picked from commit c671f0e)
@Mikolaj Mikolaj force-pushed the mergify/bp/3.12/pr-9719 branch from d889ecd to 6b488a8 Compare April 9, 2024 17:14
@ffaf1
Copy link
Collaborator

ffaf1 commented Apr 10, 2024

@mergify rebase

@mergify
Copy link
Contributor Author

mergify bot commented Apr 10, 2024

rebase

❌ Unable to rebase: user ffaf1 is unknown.

Please make sure ffaf1 has logged in Mergify dashboard.

@mergify mergify bot merged commit b5ac2f7 into 3.12 Apr 10, 2024
@mergify mergify bot deleted the mergify/bp/3.12/pr-9719 branch April 10, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport merge me Tell Mergify Bot to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants