Skip to content

Error in build command parsing #64

Closed
@natefaubion

Description

@natefaubion

The build command splits arguments by space:

let buildCommand = either (const []) (\reg -> (split reg <<< trim) command) (regex "\\s+" noFlags)

But this is problematic with spagos --purs-args flag:

spago build --purs-args="--stash --censor-lib --json-errors"

Since it will chunk these arguments as

[ "build", "--purs-args=\"--stash", "--censor-lib", "--json-errors\"" ]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions