Skip to content

Uninstalling legacy plugins raises errors #12864

Open
@chrisroberts

Description

@chrisroberts

Description

Uninstalling vagrant ruby plugins from the vagrant-go binary results in an error

% ./vagrant plugin install vagrant-vbguest

» Running plugin install... 
  Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vbguest (0.30.0)'!
(vagrant-agogo) sophia@x86_64-apple-darwin13 [13:39:26] [~/project/vagrant-ruby] [main]
-> % ./vagrant plugin list

» Running plugin list... 
  vagrant-vbguest (0.30.0, global)
(vagrant-agogo) sophia@x86_64-apple-darwin13 [13:41:55] [~/project/vagrant-ruby] [main]
-> % ./vagrant plugin uninstall vagrant-vbguest

» Running plugin uninstall... 
  Uninstalling the 'vagrant-vbguest' plugin...
! Running of task plugin uninstall failed unexpectedly
  
! Error: rpc error: code = Unknown desc = No such file or directory @ rb_check_realpath_internal - /Users/sophia/Library/Application
Support/vagrant/default/project/vagrant-ruby/plugins/gems/2.7.2
  /Users/sophia/project/vagrant-ruby/lib/vagrant/bundler.rb:441:in `realpath'
  /Users/sophia/project/vagrant-ruby/lib/vagrant/bundler.rb:441:in `realpath'
  /Users/sophia/project/vagrant-ruby/lib/vagrant/bundler.rb:441:in `block in clean'
  /Users/sophia/project/vagrant-ruby/lib/vagrant/bundler.rb:440:in `delete_if'
  /Users/sophia/project/vagrant-ruby/lib/vagrant/bundler.rb:440:in `clean'
  /Users/sophia/project/vagrant-ruby/lib/vagrant/plugin/manager.rb:229:in `uninstall_plugin'
  /Users/sophia/project/vagrant-ruby/plugins/commands/plugin/action/uninstall_plugin.rb:18:in `call'
  /Users/sophia/project/vagrant-ruby/lib/vagrant/action/warden.rb:48:in `call'
  /Users/sophia/project/vagrant-ruby/plugins/commands/plugin/action/plugin_exists_check.rb:20:in `call'
  /Users/sophia/project/vagrant-ruby/lib/vagrant/action/warden.rb:48:in `call'
  /Users/sophia/project/vagrant-ruby/lib/vagrant/action/builder.rb:180:in `call'
  /Users/sophia/project/vagrant-ruby/lib/vagrant/action/runner.rb:101:in `block in run'
  /Users/sophia/project/vagr...

Use case (optional)

Users can uninstall plugins

Estimated task complexity time-frame (does not guarantee a delivery date)

  • 1 week

If a task takes longer than 3 weeks, either consider if you can break it down into smaller pieces of work or update the issue with a new estimated time-frame with a summary checklist of tasks.

Estimated user impact

Major

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions