Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Automatic synced folder switching issue on MacOS Catalina #1

Open
danillos opened this issue Oct 9, 2019 · 2 comments
Open

Automatic synced folder switching issue on MacOS Catalina #1

danillos opened this issue Oct 9, 2019 · 2 comments

Comments

@danillos
Copy link

danillos commented Oct 9, 2019

This feature stopped to work on Catalina

@danillos
Copy link
Author

The sync is not working because of the workaround of this issue where I had to add /System/Volumes/Data for Vagrant work.

To fix the sync issue I had to put src = src.gsub('/System/Volumes/Data', '') on the avsh executable file.

     def match_synced_folder(host_directory, folders)
      vagrantfile_dir = File.dirname(@vagrantfile_path) 
      folders.each do |dest, src|

        src = src.gsub('/System/Volumes/Data', '') # added line

        real_src = File.expand_path(src, vagrantfile_dir)
        next unless host_directory.start_with?(real_src)
        relative_directory = host_directory[real_src.length..-1]
        full_directory = File.join(dest, relative_directory)
        return full_directory
      end
      nil
    end

@MasonM
Copy link
Owner

MasonM commented Oct 23, 2019

I didn't know anyone was still using this! Glad to hear it was helpful to someone.

Unfortunately, I no longer use Vagrant for development, so I'm not maintaining avsh anymore. I'll accept PRs, though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants