You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug under a certain use-case.
What is the current behavior?
When running Yarn from another process like Chef that can specify UID and doesn't spawn under a new shell, userHome gets overridden even though the effective UID of Yarn is not root. This can lead to Yarn trying to create directories in /usr/local/share even though it may not have permissions to do so.
This is pretty easy to workaround by simply specifying a USER environment variable (instead of letting it be root, which Chef runs as) in the execute statement, but I think the conditional to override userHome could be improved.
If the current behavior is a bug, please provide the steps to reproduce.
Run yarn in a Chef execute statement with a non-root user attribute.
This will fail because the non-root user likely won't have permissions to write to /usr/local/share.
What is the expected behavior?
Run normally and with the user home dir specified by the HOME variable.
Please mention your node.js, yarn and operating system version.
6.9.1, 0.17.0, Ubuntu 16.04
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Bug under a certain use-case.
What is the current behavior?
When running Yarn from another process like Chef that can specify UID and doesn't spawn under a new shell, userHome gets overridden even though the effective UID of Yarn is not root. This can lead to Yarn trying to create directories in
/usr/local/share
even though it may not have permissions to do so.Result of #1344
This is pretty easy to workaround by simply specifying a USER environment variable (instead of letting it be
root
, which Chef runs as) in theexecute
statement, but I think the conditional to override userHome could be improved.If the current behavior is a bug, please provide the steps to reproduce.
yarn
in a Chefexecute
statement with a non-rootuser
attribute.This will fail because the non-root user likely won't have permissions to write to
/usr/local/share
.What is the expected behavior?
Run normally and with the user home dir specified by the HOME variable.
Please mention your node.js, yarn and operating system version.
6.9.1, 0.17.0, Ubuntu 16.04
The text was updated successfully, but these errors were encountered: