Skip to content
Snippets Groups Projects
Commit 7bfc93a7 authored by Zubin's avatar Zubin Committed by Marge Bot
Browse files

hackage-doc-tarball: Allow ghc-boot-th to be uploaded to hackage

It can't refer to files outside its source directory, so patch that part out.
This is OK because those files are only used while bootstrapping.

Also add ghci to the list of packages to be uploaded

Fixes #25687
parent bf8c7d6e
No related branches found
No related tags found
No related merge requests found
Pipeline #106317 canceled
......@@ -93,6 +93,11 @@ def prep_ghc():
build_copy_file(PACKAGES['ghc'], 'GHC/Platform/Constants.hs')
build_copy_file(PACKAGES['ghc'], 'GHC/Settings/Config.hs')
def prep_ghc_boot_th():
# Drop ghc-internal from `hs-source-dirs` as Hackage rejects this
modify_file(PACKAGES['ghc-boot-th'], 'ghc-boot-th.cabal',
lambda s: s.replace('../ghc-internal/src', ''))
PACKAGES = {
pkg.name: pkg
for pkg in [
......@@ -105,9 +110,10 @@ PACKAGES = {
Package('template-haskell', Path("libraries/template-haskell"), no_prep),
Package('ghc-heap', Path("libraries/ghc-heap"), no_prep),
Package('ghc-boot', Path("libraries/ghc-boot"), prep_ghc_boot),
Package('ghc-boot-th', Path("libraries/ghc-boot-th"), no_prep),
Package('ghc-boot-th', Path("libraries/ghc-boot-th"), prep_ghc_boot_th),
Package('ghc-compact', Path("libraries/ghc-compact"), no_prep),
Package('ghc', Path("compiler"), prep_ghc),
Package('ghci', Path("libraries/ghci"), no_prep),
]
}
# Dict[str, Package]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment