Closed oconnore closed 4 years ago
stack-${ghcVersion}.yaml
for stack
and cabal.project
for cabal
)stack-8.6.5.yaml
adding jobs: 1
, see https://docs.haskellstack.org/en/stable/yaml_configuration/#jobs
$STACK_ROOT/config.yaml
Till now we have managed to not add argument handling to the build script for the shake of simplicity so the build is determined by the build config files (stack-${ghcVersion}.yaml for stack and cabal.project for cabal)
That’s weird, because the ./install.hs —help
documents a —jobs
option.
That manages the number of threads of the script itself and is a feature of shake
that comes for free.
@fendor ah, that makes sense. Sorry, I guess I was just confused then. Thanks for explaining. @jneira thanks for the workaround, I’ll close this since it’s already discussed in #1302
FWIW — re: #1302 — I would be fine with binaries so long as they’re distributed from a reasonable source (i.e. Github Releases vs. random S3 bucket).
I’ve passed the job limit both to the stack executable and to the
install.hs
script. Both are being ignored, because the build attempts to build Cabal and ghc-lib-parser in parallel. I do not have enough RAM in my VPS to do that simultaneously.