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

cmd: remove zealous check of Caddyfile auto-detection #6370

Merged
merged 5 commits into from
Jun 5, 2024

Conversation

mohammed90
Copy link
Member

@mohammed90 mohammed90 commented Jun 4, 2024

Turns out, it isn't uncommon to have Caddyfile.prod and such (#6362 (comment)). This is mentioned on the website as:

This flag is not necessary if the --config filename starts with "Caddyfile" which assumes the caddyfile adapter

Source

Fixes #6373

@mholt
Copy link
Member

mholt commented Jun 4, 2024

If only we had telemetry to know things like this 🙃

Thanks. Do we have a test case for the use case though? We should probably add one.

@mohammed90
Copy link
Member Author

Do we have a test case for the use case though? We should probably add one.

Added. I have a feeling deep in my heart I might've missed some case or condition. What am I missing?

@mholt
Copy link
Member

mholt commented Jun 5, 2024

Hmm do we have a test case for any Caddyfile paths without ./? Could be worth trying just in case but I bet they're OK. But at this point I'm happy to merge it when you are. 👍

@mohammed90
Copy link
Member Author

Go 🚗

@mholt mholt merged commit 243351b into master Jun 5, 2024
23 checks passed
@mholt mholt deleted the remove-zealous-check branch June 5, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: ambiguous config file format, config inside hidden folder
2 participants