Skip to content

implement XCADDY_PRINT_VERSION env variable#271

Open
neil-lcv-cs wants to merge 1 commit into
caddyserver:masterfrom
neil-lcv-cs:master
Open

implement XCADDY_PRINT_VERSION env variable#271
neil-lcv-cs wants to merge 1 commit into
caddyserver:masterfrom
neil-lcv-cs:master

Conversation

@neil-lcv-cs
Copy link
Copy Markdown

@neil-lcv-cs neil-lcv-cs commented May 22, 2026

Addresses #270.

I have thought of handling GOAMD64, though after reading the docs I realized there’s much more to implement if we want to handle feature levels properly (GOARM, GO386…).

So this PR implements a simpler fix, the XCADDY_PRINT_VERSION variable. Defaults to 1. If set to 0, xcaddy won’t attempt to execute caddy version after a xcaddy build. That’s all.

Disclaimer: I’m not a Go developer at all. Even some random AI code-spewing machine would likely implement something a little better… who knows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant