greenkeeperio / greenkeeper-lockfile

:lock: Your lockfile, up to date, all the time
https://greenkeeper.io
182 stars 73 forks source link

Lockfile update fails on yarn monorepo #207

Closed Alxandr closed 5 years ago

Alxandr commented 5 years ago

Updating dependencies in yarn monorepo root requires additional flags to yarn, currently it's failing. Error:

error Running this command will add the dependency to the workspace root rather than the workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).

Example build: https://travis-ci.com/YoloDev/rollup-config/builds/83168160#L532

It might be that just always adding -W is a good solution.

Realtin commented 5 years ago

It should be fixed with the -W! You can use GK_LOCK_YARN_OPTS for that. 🌴

Alxandr commented 5 years ago

Shouldn't this maybe be default then?