Do not pass environment variables to happy
/alex
, or at least allow a way to filter
#10072
Labels
happy
/alex
, or at least allow a way to filter
#10072
Describe the bug
happy
uses template files that need to be distributed with its executable, hence it uses thedata-files
field(?). This causes troubles during bootstrapping, which I will explain now. I have also attached a more minimal reproducer below, but the use case is important as well.In haskell/happy#262 and haskell/happy#274 we have trouble bootstrapping
happy-2
. That is because while buildinghappy-2
withcabal
, the$happy_datadir
environment variable is set to point to somewhere in the working directory (I have no idea why that is necessary). But the bootstrapping process (for packagehappy-tabular
) runs a preinstalledhappy-1.20
to compile happy's own grammar file. This run reads the$happy_datadir
variable and consequently looks for its template file in the wrong location, leading to abrupt error.To Reproduce
Steps to reproduce the behavior:
(Files as a zip instead of heredoc)
Expected behavior
Produce a
Parser.hs
file, try to build it, despite me setting an invalid environment variable forhappy
.System information
The text was updated successfully, but these errors were encountered: