-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Goodhosts' rewrite of the hosts file renders MAMP incapable of managing its entries #24
Comments
i dont think you can use the |
I think this needs migrating to the |
ohhh that makes sense, ill copy/paste and link it and close this |
To me the issue is not just the plugin that does a clean but the fact that the clean command, cleans all the file and just the parts that are involved with goodhosts. Clean command was implemented to avoid multiple injection of the same rule by goodhosts as a previous ticket so is a problem in both the projects @luthermonson |
you think there should be a |
yes in this way the user can use clean without worrying. |
Yes to me is good so I can do a new release of the plugin with that and add a flag to enable or not the clean at all. |
This sounds good! |
Whats the next step? |
find time to add the feature :D PRs welcome~ |
Luther I think the problem is less time and willingness and more that they
don’t know how to do it, I know that’s definitely the case here.
What would such a PR look like?
…On Mon, 11 Jan 2021 at 20:22, Luther Monson ***@***.***> wrote:
find time to add the feature :D PRs welcome~
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#24 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOLZ55NORZI7TLYW4ORJLSZNMYLANCNFSM4VMGYQEQ>
.
|
@luthermonson any update or technical direction? You have willing contributors with the time to make the change, who don't know what to do. I'd really like to be able to write a PR but what would that PR look like? |
@tomjn this is what i want.. open to feedback
|
Maybe we can just revert the clean imperative until there is a way to turn it off? |
@theMikeD that doesn't make sense in the context of this repo, for Goodhosts CLI, it would be easier to not use I think there's been some misunderstanding as to what goodhosts is on your part:
This is the goodhosts cli repo, so reverting the |
I'm becoming a pro at posting bugs to the wrong repo. Please move this issue elsewhere if you deem it appropriate.
Yes, this. As I understand it, doing so isn't something I can control with a config file. |
You posted in the right repo, but that particular request was for a different piece of software. IIRC @Mte90 has already fixed and merged a PR that makes it configurable and off by default |
As for this feature, I think these semantics make sense if the CLI is used in conjunction with a When adding a host:
When removing a host:
Additionally, the namespace parameter would allow rival namespaces, as well as the ability for us to do things like: goodhosts remove cnmd.test --namespace="MAMP PRO - Do NOT remove this entry!" |
This seems sensible
I think we should allow the namespace to be configurable from the CLI parameter for maximum flexibility, then search for |
any updates for this @luthermonson? |
oh thanks for the ping. this fell off my radar. adding it to my task list and ill try and get to it this week |
@theMikeD latest goodhosts vagrant plugin removed the clean operation a few months ago |
@luthermonson just a ping again :-D |
oi vey |
and it is time for another ping @luthermonson :-D |
missed this ping... sorry. im bad at getting this feature done. |
it's me again :-D |
is this still an issue with the new release? I saw test cases with MAMP examples were added to the hostsfile repo prior to 1.1.1 release |
it's not fixed yet, i grabbed the mamp hosts file to try and test it eventually as i started keeping default hosts files to write more tests against |
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: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 thisIOW 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?
The text was updated successfully, but these errors were encountered: