-
Notifications
You must be signed in to change notification settings - Fork 133
Description
Hello,
After upgrading the version of spago in my project to 0.15.2 where I use the bundle-app command it started failing with the following error:
[error] Failed to read the config. Error was:
[error] There's no "spago.dhall" in your current location.
This does not happen in version 0.14.0.
Poking around the code a bit, I found that in version 0.15 the command has the following line:
https://github.com/purescript/spago/blob/0.15.2/app/Spago.hs#L89
Which has a call to Run.withBuildEnv which as far as I can trace the code boils down to this:
https://github.com/purescript/spago/blob/0.15.2/src/Spago/RunEnv.hs#L72
Which requires a spago.dhall to be present.
While in 0.14.0, it seems to not require a spago.dhall:
https://github.com/purescript/spago/blob/0.14.0/app/Spago.hs#L441
Is this intentional?
Some more details about my setup:
I am using spago2nix and running the command with the following flags:
spago bundle-app --no-install --no-build --main Main --to dist/app.js
Thanks in advance!