Skip to content

Javascript Linker ignores broken package db

When the library dirs in the package conf files are not set up correctly, the JS linker will happily ignore such packages and not link against them, although they're part of the link plan.

This is due to insufficient error handling here:

https://gitlab.haskell.org/ghc/ghc/-/blob/b2f6aad074c00526b850d91d02479889799cb289/compiler/GHC/StgToJS/Linker/Linker.hs#L668-680

cc @hsyl20

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information