-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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: fix auto-detetction of .caddyfile extension #6356
Conversation
Signed-off-by: Mohammed Al Sahaf <[email protected]>
I think this existed to deal with #5919 (comment) i.e. |
Signed-off-by: Mohammed Al Sahaf <[email protected]>
They would have specified the |
Are you sure though? The point of this is to presume when the Caddyfile is being used: |
I can add a condition for such pesky scenarios 🙂
|
Ok, yeah, that sounds better. Maybe an error is better than ignoring it like we were doing. (But yeah, it's still important that we don't proceed, either way.) |
Signed-off-by: Mohammed Al Sahaf <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Mohammed!
With this new modification, in version 2.8.2 my Caddyfile isn't recognized anymore. I need to force it using -c Caddyfile --adapter caddyfile. If not i get ambigous config message error. Same Caddyfile works without problems in 2.8.1 |
My bad. Let me work on the fix. I'm sorry. |
official website mentions |
That's not necessary. It's a regression. Please see the linked PR. |
Aha! I knew it; appreciate the very quick fix! |
Fix #6355