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

--fix doesn't work with errors that certain keys are already defined #9

Closed
smares opened this issue Sep 17, 2024 · 2 comments
Closed
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@smares
Copy link

smares commented Sep 17, 2024

I tried to run the linter with --fix but it keeps failing with errors that keys were already defined, such as "links" or "expose".

Did you ever run this with a docker-compose.yml having multiple services?

@zavoloklom
Copy link
Owner

@smares Could you please provide a sample of docker-compose file and console output that you get?

I tested it on different compose files (eg https://github.com/zavoloklom/docker-compose-linter/blob/main/tests/mocks/docker-compose.yml), but of course I could miss something, so I really appreciate your feedback and looking forward to see more details to fix it.

@zavoloklom
Copy link
Owner

@smares I guess I figured out what happened here, I fixed it in v1.0.4.
Feel free to reach out if it’s still not working for you and thank you for your feedback!

@zavoloklom zavoloklom added the bug Something isn't working label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants