From 2bc1e2927bf34246e8f762d2c667b22b46d409df Mon Sep 17 00:00:00 2001 From: Paul Cacheux Date: Mon, 8 Nov 2021 16:22:12 +0100 Subject: [PATCH] Fix missing VagrantPlugins::HostDarwin::Cap::Version on Big Sur --- plugins/hosts/darwin/cap/path.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/hosts/darwin/cap/path.rb b/plugins/hosts/darwin/cap/path.rb index babc1bb33..2e0304071 100644 --- a/plugins/hosts/darwin/cap/path.rb +++ b/plugins/hosts/darwin/cap/path.rb @@ -17,7 +17,8 @@ module VagrantPlugins def self.resolve_host_path(env, path) path = File.expand_path(path) # Only expand firmlink paths on Catalina - return path if !CATALINA_CONSTRAINT.satisfied_by?(Cap::Version.version(env)) + host_version = env.host.capability(:version) + return path if !CATALINA_CONSTRAINT.satisfied_by?(host_version) firmlink = firmlink_map.detect do |mount_path, data_path| path.start_with?(mount_path)