Skip to content

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

Merged
mholt merged 5 commits intomasterfrom
remove-zealous-check
Jun 5, 2024
Merged

cmd: remove zealous check of Caddyfile auto-detection#6370
mholt merged 5 commits intomasterfrom
remove-zealous-check

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

@mohammed90 mohammed90 added the bug 🐞 Something isn't working label Jun 4, 2024
@mohammed90 mohammed90 added this to the v2.8.5 milestone Jun 4, 2024
@mohammed90 mohammed90 requested review from francislavoie and mholt June 4, 2024 06:55
@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
@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