git: ae2845815026 - 2024Q4 - ftp/sftpgo: unbreak build

From: Serhii (Sergey) Kozlov <skozlov_at_FreeBSD.org>
Date: Sun, 24 Nov 2024 14:19:14 UTC
The branch 2024Q4 has been updated by skozlov:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ae2845815026725476d370df3fa9133c2337cf96

commit ae2845815026725476d370df3fa9133c2337cf96
Author:     Serhii (Sergey) Kozlov <skozlov@FreeBSD.org>
AuthorDate: 2024-11-08 14:39:46 +0000
Commit:     Serhii (Sergey) Kozlov <skozlov@FreeBSD.org>
CommitDate: 2024-11-24 14:15:54 +0000

    ftp/sftpgo: unbreak build
    
    SFTPGo requires Go 1.22.7+, but the default is 1.21, so it doesn't
    build without specifying the version explicitly. Unfortunatelly, go.mk
    doesn't support specifying _minimum_ Go version, so I have to pin it to
    1.22 even though the port builds OK on 1.23 and 1.24.
    
    (cherry picked from commit 8cb463576eeb7bc4e5b8fc78c43220b090049bb8)
---
 ftp/sftpgo/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ftp/sftpgo/Makefile b/ftp/sftpgo/Makefile
index fe93897454d2..2784051397e6 100644
--- a/ftp/sftpgo/Makefile
+++ b/ftp/sftpgo/Makefile
@@ -12,7 +12,7 @@ WWW=		https://github.com/drakkan/sftpgo
 LICENSE=	AGPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		go:modules tar:xz
+USES=		go:1.22,modules tar:xz
 USE_RC_SUBR=	${PORTNAME}
 
 NO_WRKSUBDIR=	yes