Add --user flag support for wp-env #42866
Labels
[Status] In Progress
Tracking issues with work in progress
[Tool] Env
/packages/env
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Running wp-env in Linux is annoying because it creates files with user 0:0 (root).
What is your proposed solution?
One possible solution is to add:
Here: https://github.com/WordPress/gutenberg/blob/trunk/packages/env/lib/commands/run.js#L52-L59 (right before or after the
--rm
array value, as-u
is a flag ofrun
)Effectively running the docker command as the user running wp-env.
Another possibility is making this an optional behavior, since it affects mostly Linux users, as the VM for Docker Desktop for Mac and Windows takes care of UID mapping.
The text was updated successfully, but these errors were encountered: