This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
If a synced folder's owner
or group
is set in config.yml
, use it.
#872
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In some cases, synced folders exhibit permissions issues as described in Drupal VM's documentation. The suggested fix is currently to edit the
Vagrantfile
in such a way as to addowner
andgroup
options to Vagrant's mount operation. This forces end users to maintain a patched Vagrantfile that differs from the one under version control.This patch addresses the issue by allowing an untracked
config.yml
file to set these synced folder options, instead. If no options forowner
andgroup
are explicitly defined, a default value ofvagrant
is set so as to conform to the Vagrant default user conventions. As a result, if a user experiences this issue, they can write aconfig.yml
section for synced folders that looks like the following while leaving the Drupal VM coreVagrantfile
untouched:With such a stanza in one's
config.yml
file, the executedVagrantfile
will be the equivalent of a line such as: