git: ba9303f17840 - main - databases/mongodb-tools: use go 1.23
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Apr 2025 16:31:01 UTC
The branch main has been updated by ronald: URL: https://cgit.FreeBSD.org/ports/commit/?id=ba9303f178409a18c091d9a1f94b557ede18094d commit ba9303f178409a18c091d9a1f94b557ede18094d Author: Ronald Klop <ronald@FreeBSD.org> AuthorDate: 2025-04-03 16:27:57 +0000 Commit: Ronald Klop <ronald@FreeBSD.org> CommitDate: 2025-04-03 16:30:45 +0000 databases/mongodb-tools: use go 1.23 By reading some of the fixed issues in the last release I found that the go version was bumped upstream. Although it builds and runs fine I let the port follow. Add a pre-configure check that the port uses the same go version as is mentioned in go.mod. --- databases/mongodb-tools/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/databases/mongodb-tools/Makefile b/databases/mongodb-tools/Makefile index 5d81f704f809..09f3a6fdf384 100644 --- a/databases/mongodb-tools/Makefile +++ b/databases/mongodb-tools/Makefile @@ -1,5 +1,6 @@ PORTNAME= mongodb-tools DISTVERSION= 100.12.0 +PORTREVISION= 1 CATEGORIES= databases MAINTAINER= ronald@FreeBSD.org @@ -9,7 +10,7 @@ WWW= https://www.mongodb.com/docs/database-tools/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.md -USES= compiler:c++14-lang go:1.22 localbase +USES= compiler:c++14-lang go:1.23 localbase USE_GITHUB= yes GH_ACCOUNT= mongodb GH_PROJECT= mongo-tools @@ -55,6 +56,10 @@ SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 SASL_USE= my_tags=sasl SSL_USE= my_tags=ssl +pre-configure: +# Verify we use the proper go version. + ${SH} -xc "test \"X`grep -E '^go [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$$' ${WRKSRC}/go.mod`\" = \"Xgo ${GO_VERSION}.0\"" + post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in README.md CONTRIBUTING.md THIRD-PARTY-NOTICES