Skip to content
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

fmt does not actually fix dupes as stated #39

Closed
jtrinklein opened this issue Mar 9, 2020 · 1 comment
Closed

fmt does not actually fix dupes as stated #39

jtrinklein opened this issue Mar 9, 2020 · 1 comment
Labels

Comments

@jtrinklein
Copy link

OS: macOS - all versions affected (tested on 10.13, 10.14 and 10.15)
hostess version: 0.5.0

Given this hosts file:

127.0.0.1 localhost kubernetes.docker.internal
::1 localhost
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section

I would expect running the fmt command to remove duplicates and format the file correctly. However, running hostess fmt results in the following error:

$ sudo hostess fmt
duplicate hostname entry for kubernetes.docker.internal -> 127.0.0.1
Errors while parsing hostsfile. Please fix any dupes or conflicts and try again.
@cbednarski cbednarski added the bug label Mar 9, 2020
cbednarski added a commit that referenced this issue Mar 10, 2020
@cbednarski
Copy link
Owner

Thanks for the report. This is fixed! A release is pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants