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

Calling recursively doesn't work #6

Closed janaagaard75 closed 7 years ago

janaagaard75 commented 7 years ago

I have the following setup in my package.json, where I want to execute script commands recursively.

"scripts": {
  "ci": "yarn run install && yarn run lint",
  ...
}

This gives me the following ouput, where it seems to run the first run ci command correctly, but then chokes when it tries to call itself recursively.

2017-01-06T11:50:03.6089591Z [command]C:\a\yarn\dist\bin\yarn.cmd run ci
2017-01-06T11:50:04.5253923Z yarn run ci v0.18.0
2017-01-06T11:50:04.6803924Z $ yarn install && yarn run lint && yarn test 
2017-01-06T11:50:04.7643909Z 'yarn' is not recognized as an internal or external command,
2017-01-06T11:50:04.7643909Z operable program or batch file.
2017-01-06T11:50:04.7693981Z error Command failed with exit code 1.
janaagaard75 commented 7 years ago

We fixed this by adding a npm install --global yarn step before starting the Yarn run script.

geeklearningbot commented 7 years ago

I was about to write a suggestion like that.

I don't know if there is a way to make our bundled version available in path. This is something worth investigating and PRs are of course welcome.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Jan Aagaard notifications@github.com Sent: Friday, January 6, 2017 2:52:00 PM To: geeklearningio/gl-vsts-tasks-yarn Cc: Subscribed Subject: Re: [geeklearningio/gl-vsts-tasks-yarn] Calling recursively doesn't work (#6)

We fixed this by adding a npm install --global yarn step before starting the Yarn run script.

- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/geeklearningio/gl-vsts-tasks-yarn/issues/6#issuecomment-270906857, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AR20cyr0RP5pBEdt0om_DcLVeSCXzwwnks5rPkcAgaJpZM4LcrDY.