goodhosts / vagrant

Vagrant plugin that use goodhosts to manipulate hosts files
https://rubygems.org/gems/vagrant-goodhosts/
MIT License
17 stars 8 forks source link

Goodhosts reorders my hosts file #12

Closed janw-me closed 3 years ago

janw-me commented 4 years ago

I always put a lot of excpetions in my hostfile, mostly for temporary switching server. So I also quote them out a lot.

Yesterday I ran vagrant plugin update and it updated to 1.0.7 and I suspended vvv. Today I start up to see my whole hostfile is reorder alphabetical and the lines that where commented out are removed.

So I rearange them a bit for a test, run vagrant up and its all reordered agian.

I'm on Ubuntu 20.04

Mte90 commented 4 years ago

This is the behavior of https://github.com/goodhosts/cli with the new cli command that we integrated that include cleaning.

janw-me commented 4 years ago

Okay, but is there a way to disable it? I'd like to keep my structure

Mte90 commented 4 years ago

using an old version of the plugin like https://github.com/goodhosts/vagrant/releases/tag/1.0.4 that doesn't include that feature in the meantime is the best way.

janw-me commented 4 years ago

Okay I'll downgrade

Mte90 commented 3 years ago

new parameter added to disable cleaning