-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I am running MAMP Pro and VVV simultaneously, and sometimes concurrently. When MAMP Pro has first crack at the /etc/hosts file, it ends up looking like this:
127.0.0.1 scratch.test # MAMP PRO - Do NOT remove this entry!
::1 scratch.test # MAMP PRO - Do NOT remove this entry!
127.0.0.1 clean.test # MAMP PRO - Do NOT remove this entry!
::1 clean.test # MAMP PRO - Do NOT remove this entry!
127.0.0.1 cnmd.test # MAMP PRO - Do NOT remove this entry!
::1 cnmd.test # MAMP PRO - Do NOT remove this entry!
127.0.0.1 boilerplate.test # MAMP PRO - Do NOT remove this entry!
::1 boilerplate.test # MAMP PRO - Do NOT remove this entry!
127.0.0.1 macster.local # MAMP PRO - Do NOT remove this entry!
::1 macster.local # MAMP PRO - Do NOT remove this entry!
etc etc. Adding and removing hosts via MAMP Pro works correctly, and shutting down MAMP Pro removes all entries it controls. All fine.
When I fire up MAMP Pro and then fire up VVV, /etc/hosts gets rewritten so that I end up with this
::1 boilerplate.test clean.test cnmd.test macster.local scratch.test # MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry!
127.0.0.1 boilerplate.test clean.test cnmd.test macster.local scratch.test # MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry! MAMP PRO - Do NOT remove this entry!
192.168.50.4 vvv vvv.test rfa.test # VAGRANT: 32549be2774dded0939569e71b56d8f1 (default) / 465e8518-e2b5-4ae0-9348-e56e8662ab2d
255.255.255.255 broadcasthost
IOW they have gone from one-per-line pairs to a single entry. This rewrite prevents MAMP from being able to manage its entries.
As technically correct as this may be, this is a bad scene. Is there a way to have GH just do its thing without modifying anything else?
Metadata
Metadata
Assignees
Labels
No labels