geeklearningio / gl-vsts-tasks-yarn

Yarn Package Manager Visual Studio Team Services Build and Release Management extensions
MIT License
52 stars 18 forks source link

Detect when yarn is hanging, waiting for input #21

Open sandorfr opened 6 years ago

sandorfr commented 6 years ago

When there is no lockfile, yarn might be hanging waiting for user input. While this is not strictly a but, we need to find a way to detect that and report an error accordingly.

sandorfr commented 6 years ago

Interessant insights about this can be found here: https://github.com/yarnpkg/yarn/issues/1658

And there is a solution to explorer here: https://gist.github.com/ds300/158250f230d1825af8a3edd6e7af9cc0

sandorfr commented 6 years ago

The solution appears to be much simple, there is an undocumented feature : https://github.com/yarnpkg/yarn/issues/3521#issuecomment-304814053

sandorfr commented 6 years ago

Waiting for https://github.com/yarnpkg/yarn/issues/5002 and https://github.com/yarnpkg/yarn/issues/3450 resolution and will include this flag by default.