Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

kpm ignores errors of project.json event scripts #987

Closed
cherrydev opened this issue Dec 12, 2014 · 1 comment
Closed

kpm ignores errors of project.json event scripts #987

cherrydev opened this issue Dec 12, 2014 · 1 comment
Assignees
Milestone

Comments

@cherrydev
Copy link

If you set, for example, a "prebuild" script in project.json, and the command fails (returns a non-zero exit code) kpm completely ignores it. Likewise, if a "postbuild" script fails, "kpm build" still reports "Build Succeeded".

...
"scripts": {
        "prebuild": "foo"
    }
...

and then run > kpm build you will receive the message

'foo' is not recognized as an internal or external command,
operable program or batch file.

The remainder of the build will then continue. I've yet to think of reason why this would be the desired behaviour.
Running KRE-CLR-x86.1.0.0-beta1

@Praburaj
Copy link
Contributor

Praburaj commented Jan 7, 2015

Fixed #1016

@Praburaj Praburaj closed this as completed Jan 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants