Skip to content

[v2.4.8] rsync-auto command excludes path with symlinked directory as a part #13702

@vm4866571246066832v

Description

@vm4866571246066832v

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

  1. add a config.vm.synced_folder with a symlink in it
  2. Run vagrant rsync-auto in the CWD

References

Well, the same as this one?

#11416

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions