Files
macports-ports/www/caddy/files/patch-version.diff

11 lines
501 B
Diff

--- github.com/caddyserver/caddy/caddy.go.orig 2022-09-21 22:59:44.000000000 +0400
+++ github.com/caddyserver/caddy/caddy.go 2022-09-23 14:45:56.000000000 +0400
@@ -841,6 +841,7 @@
//
// This function is experimental and subject to change or removal.
func Version() (simple, full string) {
+ return "@VERSION@", "@VERSION@"
// the currently-recommended way to build Caddy involves
// building it as a dependency so we can extract version
// information from go.mod tooling; once the upstream