Skip to content

deft build doesn't exit with error status on build failure #76

Description

@cgay

From Mastodon:

deft build doesn't return exit code on warnings or errors? Am I holding it wrong?

% deft build --all && echo $? && _build/bin/hello-world Mark

Build of 'hello-world' completed
…
Building targets: exe within /Use...Build of "hello-world" failed with exit status 3.
0
Reference to undefined binding "STATNAMES".
Backtrace: …

"undefined binding" is a serious warning, so yeah, exit status should definitely be non-zero. Not sure about non-serious warnings (e.g., unused variable).

There's some cruft in command-line-parser that should be cleaned up too, related to using subcommands. Check execute-subcommand and execute-command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions