-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed build returns 0 exit code #1169
Conversation
Can you try 0.0.37. Improvements have been made |
Same problem with 0.0.37 |
yup it does, good catch. we should propagate this style solution throughout the CLI 3c8aebf |
actually, just tried to reproduce in 0.0.37 and it works as expected. ensure you I do believe we have more issues here, but it appears this scenario does work. |
easy way to confirm is
|
Thanks for you assistance, I've just did: npm -g uninstall ember-cli
npm -g install ember-cli
cat $(which ember) | grep '}).then(process.exit);'
# prints: }).then(process.exit); But I can still reproduce: ember build; echo "Exit code $?"
version: 0.0.37
Buildingapp.import(vendor/ember-data/ember-data.js) - Passing modules object is deprecated. Please pass an option object with modules as export key (see http://git.io/H1GsPw for more info).
Build failed.
Path or pattern "vendor/jquery/dist/jquery.js" did not match any files
Error: Path or pattern "vendor/jquery/dist/jquery.js" did not match any files
at Object.multiGlob (/Users/ludek/Projects/tmp/pokus/node_modules/ember-cli/node_modules/broccoli-concat/node_modules/broccoli-kitchen-sink-helpers/index.js:216:13)
at /Users/ludek/Projects/tmp/pokus/node_modules/ember-cli/node_modules/broccoli-concat/index.js:41:30
at tryCatch (/Users/ludek/Projects/tmp/pokus/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:163:16)
at invokeCallback (/Users/ludek/Projects/tmp/pokus/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:172:17)
at publish (/Users/ludek/Projects/tmp/pokus/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/-internal.js:150:13)
at flush (/Users/ludek/Projects/tmp/pokus/node_modules/ember-cli/node_modules/rsvp/dist/commonjs/rsvp/asap.js:51:9)
at process._tickCallback (node.js:419:13)Exit code 0 |
@ludekstepan sounds good, i suspect the failure I was seeing was going down a working path. looking at https://github.com/stefanpenner/ember-cli/blob/master/lib/tasks/build.js#L46-L58 it clearly doesn't return the correct status code. |
Yep, I've been just looking at the same thing, there's no return statement. :-) |
@ludekstepan the reason i haven't submitted a fix yet is lack of time to add the test so we don't regress again. If you have time to help, I would be appreciative :) |
I'll try and eventually open a pull request :) thanks! |
@@ -1,5 +1,6 @@ | |||
# ember-cli Changelog | |||
|
|||
* [BUGFIX] Failed build should return non-zero exit code. [#1169](https://github.com/stefanpenner/ember-cli/pull/1169) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New items should be at the end of the listing generally.
LGTM |
Failed build returns 0 exit code
When
ember build
fails a non-zero error code should be returned. This is similar to #1150Steps to reproduce
Output: