summaryrefslogtreecommitdiff
path: root/caddytest
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@adamw.org>2022-10-05 10:59:57 -0600
committerGitHub <noreply@github.com>2022-10-05 10:59:57 -0600
commite4fac1294f3fcedea5bc94668d56ec64e651bc98 (patch)
treecef89b5fdf8f68155afbe7ee17a282c4fd071301 /caddytest
parent2153a81ec85da99dcd33aa87ff0df5d286f00e9d (diff)
core: Set version manually via CustomVersion (#5072)
* Allow version to be set manually When Caddy is built from a release tarball (as downloaded from GitHub), `caddy version` returns an empty string. This causes confusion for downstream packagers. With this commit, VersionString can be set with eg. go build (...) -ldflags '-X (...).VersionString=v1.2.3' Then the short form version will be "v1.2.3", and the full version string will begin with "v1.2.3 ". * Prefer embedded version, then CustomVersion * Prefer "unknown" for full version over empty Co-authored-by: Matthew Holt <mholt@users.noreply.github.com>
Diffstat (limited to 'caddytest')
0 files changed, 0 insertions, 0 deletions