[Git][ghc/ghc][wip/backports-9.12] upload-ghc-libs: Drop more references to ghc-internal from ghc-boot-th

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Thu Jan 30 19:06:12 UTC 2025



Ben Gamari pushed to branch wip/backports-9.12 at Glasgow Haskell Compiler / GHC


Commits:
afec4b75 by Ben Gamari at 2025-01-30T14:05:41-05:00
upload-ghc-libs: Drop more references to ghc-internal from ghc-boot-th

- - - - -


1 changed file:

- .gitlab/rel_eng/upload_ghc_libs.py


Changes:

=====================================
.gitlab/rel_eng/upload_ghc_libs.py
=====================================
@@ -94,9 +94,23 @@ def prep_ghc():
     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
+    # Drop references to `ghc-internal` from `hs-source-dirs` as Hackage rejects
+    # out-of-sdist references and this packages is only uploaded for documentation
+    # purposes.
     modify_file(PACKAGES['ghc-boot-th'], 'ghc-boot-th.cabal',
-                lambda s: s.replace('../ghc-internal/src', ''))
+                lambda s: s.replace('../ghc-internal/src', '')
+                           .replace('GHC.Internal.TH.Lib.Map', '')
+                           .replace('GHC.Internal.TH.PprLib', '')
+                           .replace('GHC.Internal.TH.Ppr', '')
+                           .replace('GHC.Internal.TH.Lib,', '')
+                           .replace('GHC.Internal.TH.Lib', '')
+                           .replace('GHC.Internal.TH.Lift,', '')
+                           .replace('GHC.Internal.TH.Quote,', '')
+                           .replace('GHC.Internal.TH.Syntax', '')
+                           .replace('GHC.Internal.ForeignSrcLang', '')
+                           .replace('GHC.Internal.LanguageExtensions', '')
+                           .replace('GHC.Internal.Lexeme', '')
+                )
 
 PACKAGES = {
     pkg.name: pkg



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/afec4b75c2d0e9f5c462a86d9f3697acf30355c7

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/afec4b75c2d0e9f5c462a86d9f3697acf30355c7
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20250130/b13579c6/attachment-0001.html>


More information about the ghc-commits mailing list