Open1
Vagrant2.2.19のHostDarwin云々のエラーを修正する
状況
- macOS Monterey 12.1 Beta 21C5045a
- VirtualBox v6.1.30
- Vagrant v2.2.19
roots/trellis
でVagrantを使っていると以下のエラーに遭遇
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Exporting NFS shared folders...
/opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/plugins/hosts/darwin/cap/path.rb:20:in `resolve_host_path': uninitialized constant VagrantPlugins::HostDarwin::Cap::Version (NameError)
from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/capability_host.rb:111:in `call'
from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/lib/vagrant/capability_host.rb:111:in `capability'
from /opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/plugins/hosts/bsd/cap/nfs.rb:29:in `block in nfs_export'
(後略)
VagrantPlugins::HostDarwin::Cap::Version
が初期化されていないとのこと。
解決方法: 未リリースのPRを使う
Paul Cacheuxさんが修正PRを作ってくださっている。
Big Sur以降だけの問題らしく、PRは既にマージされているが、v2.2.19
に間に合わなかった。
/opt/vagrant/embedded/gems/2.2.19/gems/vagrant-2.2.19/plugins/hosts/darwin/cap/path.rb
をPRの内容で置き換えればいい。
ログインするとコメントできます