-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Open
Labels
Description
Vagrant version
Vagrant 2.4.8
Host operating system
Debian 11.11
Guest operating system
Debian Bullseye
Vagrantfile
config.vm.synced_folder '.', '/vagrant', disabled: true
config.vm.synced_folder '.', '/vagrant-ro'
config.vm.synced_folder '../symlink/directory', '/vagrant-ro/directory', type: 'rsync',
The part "symlink" is a symlink, "directory" is a directory.
Debug output
https://gist.github.com/vm4866571246066832v/779bb0649769119d74a629e4c287ce7b
Expected behavior
rsync-auto should watch & sync /home/me/sources/symlink/directory/ to /vagrant-ro/directory
Actual behavior
rsync-auto displays the warning:
bullseye: Not syncing /home/me/sources/target_of_symlink/directory as it is not part of the current working directory.
Reproduction information
vagrant up
[snip]
==> bullseye: Rsyncing folder: /home/me/sources/symlink/directory/ => /vagrant-ro/directory
[snip
vagrant rsync-auto
==> bullseye: Not syncing /home/me/sources/target_of_symlink/directory as it is not part of the current working directory.
The symlink part has been replaced by the target of the symlink, which is located (in my case) in the same directory /home/me/sources/, but with another name:
cd /home/me/sources
ln -s target_of_symlink symlink
actually, I appended a branch name, e.g.: directory_branch
Steps to reproduce
- add a config.vm.synced_folder with a symlink in it
- Run vagrant rsync-auto in the CWD
References
Well, the same as this one?