git: 4b4a609ce026 - main - www/xcaddy: Fix hardcoded go command
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 29 Jun 2025 23:22:04 UTC
The branch main has been updated by olgeni:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4b4a609ce0260d86cccdab5077eac4958e58c44d
commit 4b4a609ce0260d86cccdab5077eac4958e58c44d
Author: Jimmy Olgeni <olgeni@FreeBSD.org>
AuthorDate: 2025-06-29 23:20:45 +0000
Commit: Jimmy Olgeni <olgeni@FreeBSD.org>
CommitDate: 2025-06-29 23:21:46 +0000
www/xcaddy: Fix hardcoded go command
Replace hardcoded "go" command with ${GO_CMD} to properly use the
correct Go version from the ports framework.
PR: 287907
---
www/xcaddy/Makefile | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/www/xcaddy/Makefile b/www/xcaddy/Makefile
index d47e313cec4d..b177dc300c54 100644
--- a/www/xcaddy/Makefile
+++ b/www/xcaddy/Makefile
@@ -1,6 +1,7 @@
PORTNAME= xcaddy
DISTVERSIONPREFIX= v
DISTVERSION= 0.4.4
+PORTREVISION= 1
CATEGORIES= www
DIST_SUBDIR= xcaddy
@@ -20,4 +21,8 @@ SUB_FILES= pkg-message
PLIST_FILES= bin/${PORTNAME}
+post-patch:
+ ${REINPLACE_CMD} 's,return "go",return "${GO_CMD}",g' \
+ ${WRKSRC}/internal/utils/environment.go
+
.include <bsd.port.mk>