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

Exit Code returns 0 for failed builds

Closed
cenk1cenk2 opened this issue Apr 12, 2022 · 1 comment
Closed

Exit Code returns 0 for failed builds #606

cenk1cenk2 opened this issue Apr 12, 2022 · 1 comment
Labels

Comments

@cenk1cenk2
Copy link

cenk1cenk2 commented Apr 12, 2022

Hello @egoist,

Sorry for bugging you with another issue. But it seems that latest builds does not seem to return exit code greater than 0 for failed builds. You can see the debug logs below.

With latest version: 5.12.4

[PRODUCTION] CJS Build failed
Error: Build failed with 15 errors:
src/interceptor/cache-lifetime.interceptor.ts:34:9: ERROR: No matching export in "src/interceptor/cache-lifetime.interface.ts" for import "CacheLifetimeOptions"
src/interceptor/cache-lifetime.interceptor.ts:34:9: ERROR: No matching export in "src/interceptor/cache-lifetime.interface.ts" for import "CacheLifetimeOptions"
src/interceptor/cache-lifetime.interceptor.ts:34:9: ERROR: No matching export in "src/interceptor/cache-lifetime.interface.ts" for import "CacheLifetimeOptions"
src/provider/swagger/swagger.service.ts:33:9: ERROR: No matching export in "src/provider/swagger/swagger.interfaces.ts" for import "SwaggerConfig"
src/provider/swagger/swagger.service.ts:33:9: ERROR: No matching export in "src/provider/swagger/swagger.interfaces.ts" for import "SwaggerConfig"
...
    at failureErrorWithLog (/home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:1603:15)
    at /home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:1249:28
    at runOnEndCallbacks (/home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:1034:63)
    at buildResponseToResult (/home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:1247:7)
    at /home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:1356:14
    at /home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:666:9
    at handleIncomingPacket (/home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:763:9)
    at Socket.readFromStdout (/home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:632:7)
    at Socket.emit (node:events:520:28)
    at addChunk (node:internal/streams/readable:315:12)
Done in 2.24s.
[cenk-ws03>cenk] | ~/development/work/nx-test/packages/nestjs-util-restful                                                                                                                                                                               git:(master) x
$ echo $?
0

Last known working version: 5.12.1

[PRODUCTION] CJS Build failed
Error: Build failed with 15 errors:
src/interceptor/cache-lifetime.interceptor.ts:34:9: ERROR: No matching export in "src/interceptor/cache-lifetime.interface.ts" for import "CacheLifetimeOptions"
src/interceptor/cache-lifetime.interceptor.ts:34:9: ERROR: No matching export in "src/interceptor/cache-lifetime.interface.ts" for import "CacheLifetimeOptions"
src/interceptor/cache-lifetime.interceptor.ts:34:9: ERROR: No matching export in "src/interceptor/cache-lifetime.interface.ts" for import "CacheLifetimeOptions"
src/provider/swagger/swagger.service.ts:33:9: ERROR: No matching export in "src/provider/swagger/swagger.interfaces.ts" for import "SwaggerConfig"
src/provider/swagger/swagger.service.ts:33:9: ERROR: No matching export in "src/provider/swagger/swagger.interfaces.ts" for import "SwaggerConfig"
...
    at failureErrorWithLog (/home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:1603:15)
    at /home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:1249:28
    at runOnEndCallbacks (/home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:1034:63)
    at buildResponseToResult (/home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:1247:7)
    at /home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:1356:14
    at /home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:666:9
    at handleIncomingPacket (/home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:763:9)
    at Socket.readFromStdout (/home/cenk/development/work/nx-test/node_modules/esbuild/lib/main.js:632:7)
    at Socket.emit (node:events:520:28)
    at addChunk (node:internal/streams/readable:315:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[cenk-ws03>cenk] | ~/development/work/nx-test/packages/nestjs-util-restful                                                                                                                                                                               git:(master) x
$ echo $?
1

This repo https://github.com/tailoredmedia/backend-nx-skeleton is affected, so you can see it as a reproduction.

@egoist egoist closed this as completed in b3ad95f Apr 12, 2022
@github-actions
Copy link

github-actions bot commented Apr 12, 2022

🎉 This issue has been resolved in version 5.12.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant