mdubourg001 / glci

🦊 Test your Gitlab CI Pipelines changes locally using Docker.
568 stars 17 forks source link

UnhandledPromiseRejectionWarning #37

Open pamplemoussemk2 opened 3 years ago

pamplemoussemk2 commented 3 years ago

Hello, I was happy to find today this project. Unfortunately, it doesn't work for me. I just dist-upgraded to Ubuntu 20. glci writes these errors:

$ glci
glci (v0.4.3)

(node:3812) UnhandledPromiseRejectionWarning: TypeError: Cannot use 'in' operator to search for 'local' in p
    at main$1 (/home/b/.config/yarn/global/node_modules/glci/dist/cli.min.js:528:19)
(node:3812) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3812) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Is it a known issue ? Regards.

mdubourg001 commented 3 years ago

Hello, could you please provide your .gitlab-ci.yml file ?

Thanks for reporting this 👌

theoretick commented 3 years ago

Just ran into this and with https://github.com/mdubourg001/glci/blob/60686ead936cfcd3de824d07d45b330fad4944f5/index.js#L188 looks like only include: local is supported at the moment so any CI configuration that use include:remote, include:template, etc will throw here.

Perhaps it's worth documenting that limitation at the top-level of the README?