Skip to content
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

Nest build return an error code ? #423

Closed
RemyLespagnol opened this issue Oct 22, 2019 · 4 comments
Closed

Nest build return an error code ? #423

RemyLespagnol opened this issue Oct 22, 2019 · 4 comments

Comments

@RemyLespagnol
Copy link

RemyLespagnol commented Oct 22, 2019

I'm submitting a...


[ ] Regression 
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

When I want to build my nest app, I want to know if I have an error or not. Visually, it's easy to know. But on a CI/CD environment, it seems that the return code is 0. So the build is ok and the deployment start (not good at all).

Expected behavior

I want an exit code different from 0.

Minimal reproduction of the problem with instructions

Just run a nest app, make some errors and do a nest build; echo $? and you can see 0 as code return.

What is the motivation / use case for changing the behavior?

Have a CI/CD process working.

Environment

ALL
@kamilmysliwiec
Copy link
Member

Fixed in 6.11.0

@RemyLespagnol
Copy link
Author

Thank you !

@Yehonal
Copy link

Yehonal commented Feb 26, 2021

The issue appeared again.

after running:

nest build; echo $?

I have this:


 Error  Cannot read property 'kind' of undefined

0

and my pipeline does not exit

I'm using nest-cli 7.5.6

@jmcdo29
Copy link
Member

jmcdo29 commented Feb 26, 2021

I can't confirm this. I get an exit code of 1 on nest build with errors.

image

@nestjs nestjs locked and limited conversation to collaborators Mar 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants