-
Notifications
You must be signed in to change notification settings - Fork 9
Description
goodhosts version 1.1.4 with vagrant 2.3.0 an vbox 6.1.38 (Windows 10)
Today upgraded from 1.1.1 to 1.1.4 and got the issue.
Issue: goodhosts auto-cleans hosts file and removes all comments
-
The issue made me loss multiple project mappings in hosts file that were commented.
-
In my case all the comments of hosts file is removed!!! and multiple records of each ip is created as single record....
-
Normally while changing user files, a copy must be created as a good practice...
Below is in the readme... That suggest goodhosts is not cleaning hosts file by default !!!! But not having the line in Vagrantfile, it cleans the hosts file. The plugin assumes total control of the hosts file of machine that runs it...!!!
==================
Disable file hosts clean
If you want /etc/hosts file cleaned add in your VagrantFile:
config.goodhosts.disable_clean = false
==================