From 93bbbec34756c1016c84f2315d437b009015fe65 Mon Sep 17 00:00:00 2001 From: h3n4l Date: Sat, 9 May 2026 16:49:43 +0800 Subject: [PATCH 1/2] chore: bump omni to v0.0.0-20260509021101-01140a7b9722 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Picks up bytebase/omni#127 — the mongo parser now accepts a single trailing comma in argument lists (matching mongosh / JS ES2017+ behavior). With this bump, statements of the form `db.coll.find({…},).sort({…})` parse cleanly through gomongo instead of erroring with `expected ,, got ")"`. No gomongo source changes — go.mod / go.sum bump only. Co-Authored-By: Claude Opus 4.7 (1M context) --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 7419e40..2b0c1f3 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/bytebase/gomongo go 1.25.5 require ( - github.com/bytebase/omni v0.0.0-20260402100940-de2123e1bfb3 + github.com/bytebase/omni v0.0.0-20260509021101-01140a7b9722 github.com/google/uuid v1.6.0 github.com/stretchr/testify v1.11.1 github.com/testcontainers/testcontainers-go v0.41.0 diff --git a/go.sum b/go.sum index 5a0e73f..2188140 100644 --- a/go.sum +++ b/go.sum @@ -6,8 +6,8 @@ github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c h1:udKWzYgxTojEK github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= -github.com/bytebase/omni v0.0.0-20260402100940-de2123e1bfb3 h1:8llu1EtFX2sjXmOOE0WTD/FtWP8j4+7qEpRrEz9gt/s= -github.com/bytebase/omni v0.0.0-20260402100940-de2123e1bfb3/go.mod h1:7kUVQrivlkckALafCX5j4W3M95Cg9+Kw69ZukIHKXhQ= +github.com/bytebase/omni v0.0.0-20260509021101-01140a7b9722 h1:zeMIExVxJVNoU3DZfrKrMMrdZTmUJ264bihZ3fDNcqo= +github.com/bytebase/omni v0.0.0-20260509021101-01140a7b9722/go.mod h1:EVG8nQbNPUnUBGKn6J0niSGOs3jgfKo3TciY22R4bfo= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= github.com/cenkalti/backoff/v5 v5.0.3 h1:ZN+IMa753KfX5hd8vVaMixjnqRZ3y8CuJKRKj1xcsSM= From 83f1572e021fb7bbc4ecb83f43a5bd8739538116 Mon Sep 17 00:00:00 2001 From: h3n4l Date: Mon, 11 May 2026 03:19:04 +0800 Subject: [PATCH 2/2] chore: bump go directive to 1.25.7 to satisfy new omni transitive deps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The omni bump in the previous commit pulls in a transitive closure that requires Go ≥ 1.25.7. `go mod tidy` raises the main module's go directive accordingly, which CI verifies. Reverting it manually to 1.25.5 caused both the test job's tidy-diff check and the golangci-lint context loader to fail. Co-Authored-By: Claude Opus 4.7 (1M context) --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 2b0c1f3..693d6bf 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/bytebase/gomongo -go 1.25.5 +go 1.25.7 require ( github.com/bytebase/omni v0.0.0-20260509021101-01140a7b9722