-
Notifications
You must be signed in to change notification settings - Fork 12
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
Limiting hosts per line works for first line, but after that each item goes on its own line #51
Comments
I thought I had a test for that, I'll check this out today |
the good thing is i can recreate the problem and it's being caused by hosts per line being called after every add. this is definitely a bug and ill investigate further but here is how to recreate the problem with just the hostsfile package
|
based on testing you should be fine with the changes in the PR i just posted. i can leave this up as a branch for a bit if you want to test and confirm before we make the merge and release. thanks again for your help tracking this down |
I think the current structure was a workaround for I'll change it to the structure you suggest. Thanks so much! |
Oh, I guess I can't. Normally only one host is added at a time, per Here's the code, https://github.com/ddev/ddev/blob/b71df9536b015854d9ee3cc7829861ef34e0e909/pkg/ddevapp/hostname_mgt.go#L127-L147 Can you see a workaround? But I see is on the way, thanks! |
https://github.com/goodhosts/hostsfile/releases/tag/v0.1.5 try this and see if youre good |
Sadly, it has a panic now,
I didn't change the calling code just updated the go.mod etc. |
any chance you can ping me on gophers slack? |
i believe me writng all tests to blank Hosts structs covered up a bug, can you vendor from this branch? i don't want to release again if this isn't the fix |
confirmed fixed worked via chat outside of git, this is good and being released |
This isn't a huge deal, but probably not what's intended.
Using the artifacts in ddev/ddev#4805 and running the manual test there,
You'll see the results are that the first hosts line goes to 8, but after that they are all on separate lines.
Code from https://github.com/rfay/ddev/blob/b71df9536b015854d9ee3cc7829861ef34e0e909/pkg/ddevapp/hostname_mgt.go#L135-L146 is
The text was updated successfully, but these errors were encountered: