Drasil icon indicating copy to clipboard operation
Drasil copied to clipboard

`make analysis` implicitly relies on a `make code` run first to get the `split` package

Open balacij opened this issue 3 years ago • 0 comments

  1. Why doesn't make analysis work on its own? It seems we need the split package implicitly, and it only works on our machines (and the CI) because we typically run make code first (which pulls in the split package into the impure work cache that it pulls from).

Originally posted by @balacij in https://github.com/JacquesCarette/Drasil/issues/2993#issuecomment-1137527695

Problem: If we clone the repo locally from fresh, and run make analysis, the external Hs script will error out for a dependency. We don't often see this error at the moment because we usually have a GHC cache that contains the dependencies (here, at least, split package).

Solution (i): We could convert the 2 relevant .hs scripts into Stack scripts and have the needed packages installed as required, automatically.

Solution (ii): Force a make code run to exist before -- seems a bit heavy for nothing.

balacij avatar May 26 '22 15:05 balacij