I see that sounds like the issue. I didn't need bash or any of the other packages installed, so I just installed rsync and its dependencies. I will try to install bash and run your test later.
On Tuesday, March 3, 2015 at 7:18:42 PM UTC-8, Alvaro Miranda Aguilera wrote: > > Can you do a test please? > > Can you run a bash session from Cygwin, and run the vagrant command > from there, without that ENV ? > > My impression is when people use Cygwin or MinGW, it just work. > > If does work fine, then I am happy to add a pull request for that > information as workaround when you use CMD + rsync > > Alvaro. > > On Wed, Mar 4, 2015 at 1:18 PM, David <[email protected] <javascript:>> > wrote: > > As a new Vagrant user I followed the instructions here, installing the > > cygwin rsync package and then adding it to my Windows path. > > > > I figured it should just work, but upon reload I started getting errors > > like: > > > > rsync: change_dir "/c/workspace" failed: No such file or directory (2) > > > > I tried a bunch of other ways of specifying the path in Vagrantfile such > as: > > > > config.vm.synced_folder "../workspace", "/workspace", type: "rsync", > > rsync__auto: "true" > > config.vm.synced_folder "C:/workspace", "/workspace", type: "rsync", > > rsync__auto: "true" > > config.vm.synced_folder "/cygdrive/c/workspace", "/workspace", type: > > "rsync", rsync__auto: "true" > > > > but all resulted in the same error. There are a lot of results when > Googling > > Vagrant rsync problems making it harder to find the right one. Finally I > > found this issue, and embedded in the many comments spanning more than a > > year there is the suggestion to add this line: > > > > ENV["VAGRANT_DETECTED_OS"] = ENV["VAGRANT_DETECTED_OS"].to_s + " cygwin" > > > > And it works! That is great, however the problem is Vagrant. I'm not > > familiar with the Vagrant culture, but is this seriously the best way to > > document long-standing essential workarounds. If you're not going to fix > it > > that's one thing, but can it least be documented? The official > documentation > > says: > > > > "On Windows, rsync installed with Cygwin or MinGW will be detected by > > Vagrant and works well." > > > > Are all new users just supposed to spend 30 minutes sorting out this > problem > > while the maintainers ignore it for another year? Very strange initial > > experience with Vagrant after hearing some good things. > > > > > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Vagrant" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to [email protected] <javascript:>. > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
