git: ad6bb5c5f583 - main - www/pocketbase: Update 0.39.11 => 0.40.2

From: Yusuf Yaman <nxjoseph_at_FreeBSD.org>
Date: Sat, 05 Sep 2026 12:31:41 UTC
The branch main has been updated by nxjoseph:

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

commit ad6bb5c5f58387a85401dc7740e038bdbab5a078
Author:     Christos Longros <chris.longros@gmail.com>
AuthorDate: 2026-09-05 11:40:49 +0000
Commit:     Yusuf Yaman <nxjoseph@FreeBSD.org>
CommitDate: 2026-09-05 12:31:22 +0000

    www/pocketbase: Update 0.39.11 => 0.40.2
    
    Added UPDATING entry for possible breakages.
    
    Upstream switched to Go 1.27.
    
    Changelog:
    https://github.com/pocketbase/pocketbase/blob/v0.40.2/CHANGELOG.md
    
    PR:             298209
    Approved by:    osa, vvd (Mentors, implicit)
---
 UPDATING                | 17 +++++++++++++++++
 www/pocketbase/Makefile |  5 ++---
 www/pocketbase/distinfo | 10 +++++-----
 3 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/UPDATING b/UPDATING
index 1787210c68b2..a96c83e6e682 100644
--- a/UPDATING
+++ b/UPDATING
@@ -5,6 +5,23 @@ they are unavoidable.
 You should get into the habit of checking this file for changes each time
 you update your ports collection, before attempting any port upgrades.
 
+20260905:
+  AFFECTS: users of www/pocketbase
+  AUTHOR: nxjoseph@FreeBSD.org
+
+  1) Please note that Go 1.27.0, which upstream has been switched to,
+  retrofitted `encoding/json` to use the v2 package under the hood but
+  unfortunately is not fully backward compatible. I recommend to not
+  push blindly an update on production and to test your PocketBase
+  application first locally to see if everything works correctly.
+
+  2) Note that there could be a slight breaking change in case you are
+  chaining PocketBase commands and relied on the previous `0` exit status
+  for `Command.RunE` returned errors. Or in other words, if you have
+  `./pocketbase invalid && someothercommand` and previously relied that
+  `someothercommand` will be always executed then this is no longer the
+  case and you'll have to adjust it or replace `&&` with `;`.
+
 20260902:
   AFFECTS: users of mail/py-notmuch2
   AUTHOR: jrm@FreeBSD.org
diff --git a/www/pocketbase/Makefile b/www/pocketbase/Makefile
index f34d02d20334..b63e2a8092b8 100644
--- a/www/pocketbase/Makefile
+++ b/www/pocketbase/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	pocketbase
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.39.11
-PORTREVISION=	1
+DISTVERSION=	0.40.2
 CATEGORIES=	www
 
 MAINTAINER=	chris.longros@gmail.com
@@ -11,7 +10,7 @@ WWW=		https://pocketbase.io/
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.md
 
-USES=		go:modules
+USES=		go:1.27+,modules
 
 GO_MODULE=	github.com/pocketbase/pocketbase
 GO_TARGET=	./examples/base:${PORTNAME}
diff --git a/www/pocketbase/distinfo b/www/pocketbase/distinfo
index 8a67715141dd..95de22f9f4e8 100644
--- a/www/pocketbase/distinfo
+++ b/www/pocketbase/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1787375602
-SHA256 (go/www_pocketbase/pocketbase-v0.39.11/v0.39.11.mod) = 7e226514d853803c1bb8563a1b71d4a2a532861a501c0ee065cbf7c4ce5962d1
-SIZE (go/www_pocketbase/pocketbase-v0.39.11/v0.39.11.mod) = 1870
-SHA256 (go/www_pocketbase/pocketbase-v0.39.11/v0.39.11.zip) = 44ff5e3d534f716690ddf3f202870f3eeb267ff1e9a7b1c1b91a961926706f6f
-SIZE (go/www_pocketbase/pocketbase-v0.39.11/v0.39.11.zip) = 5296245
+TIMESTAMP = 1788608407
+SHA256 (go/www_pocketbase/pocketbase-v0.40.2/v0.40.2.mod) = 22c5dab2ddd91eb2b24544d9520e5e2f41d265b93d5ffdcb1e6334b2876e320e
+SIZE (go/www_pocketbase/pocketbase-v0.40.2/v0.40.2.mod) = 1916
+SHA256 (go/www_pocketbase/pocketbase-v0.40.2/v0.40.2.zip) = 76679ed75be71119dc51a1f21af3e87a421f7507ce40d64382232674ae9ce18a
+SIZE (go/www_pocketbase/pocketbase-v0.40.2/v0.40.2.zip) = 5315466