Closed fukasugi closed 3 years ago
Indeed,
Appeared right after vagrant upgrade from 2.2.13 to 2.2.14 (observed at Windows 10)
This plugin is dead this is the reason why we started vagrant-goodhosts that is a fork of that, https://github.com/goodhosts/vagrant
We have the same issue, but I am trying to understand how to fix it.
@Mte90 - I wouldn't quite call it dead... the latest commit is 2 days ago: https://github.com/agiledivider/vagrant-hostsupdater/commit/d35df1ba041a78b7b8e0147f2cf4f2e192887ca5
Some plugins, like this one, just kinda do the one thing they do, and do it well, and a lack of active development over a long period of time ≠ the project is dead or unmaintained. I have a number of projects where I'm happy with where they're at, I use them daily, and I might or might not get around to any kind of feature improvements, but I sure as heck will fix any major bugs :)
Well seems that after the last commit of february 2019 and the latest release of may 2018 there is a new version officially.
Well I have to project not active maintained but you have one with a lot of tickets and pr in queue since years, it is a fact that is dead also if works. Otherwise we will not fork it to create a new one that fix many issues on windows side and use an utility to manipulate the hosts file to avoid bugs.
To get back on track, as in Vagrant they are not helping on fixing this issue: https://github.com/hashicorp/vagrant/issues/12070#issuecomment-732271918
I tried various things to fix this issue without any success. The hook is appended in my tests in all the cases and the action get as parameter env
but includes just the values when is added.
Lol! @Mte90 calling a plugin dead is a pretty strong accusation. If you have any PRs or issues that you would like merged in just let me know and I'll gladly accept them.
I'll be looking at this early next week to see if there is something that can be done to clean up the nuisance messages but it is not a priority for me to fix immediately. Things that are a high priority are fixed and pushed.
Here is the PR to resolve the issue https://github.com/agiledivider/vagrant-hostsupdater/pull/197.
As follows, when I conduct 'vagrant up' or 'vagrant halt', duplicated messages from this plugin appear and it makes multiple blank lines in hosts file in system32 (My OS is Windows10 Home).
I repeated installation and uninstallation during I examined vagrant, this might be the cause I'm not sure though? And assignment of IP to hostname is working properly, but these messages are ridiculoutly ugly. Help Me Please!