Skip to content

Spago bundle-app requires config in 0.15 version #634

@Nimor111

Description

@Nimor111

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions