From f63dd5eb80fde9afdc1bd54bae802e7d8cb5150a Mon Sep 17 00:00:00 2001 From: Kevin Codex Date: Mon, 12 Oct 2026 10:35:16 +0800 Subject: [PATCH 1/2] test(cron): pass the history limit in the claim tests #1094 added a limit argument to cron.Store.Runs. #1090 merged shortly after from a branch that predated it, so its two new tests in cron_claim_test.go still called Runs with only the job id and the internal/cli test package stopped compiling on main: internal/cli/cron_claim_test.go:111:38: not enough arguments in call to stores[0].Runs have (string) want (string, int) That failed vet and every job that runs go test. Pass 0, which selects the default MaxRunHistory cap, as the other callers in this package do. --- internal/cli/cron_claim_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cli/cron_claim_test.go b/internal/cli/cron_claim_test.go index 51bb6fad1..f811fcd0c 100644 --- a/internal/cli/cron_claim_test.go +++ b/internal/cli/cron_claim_test.go @@ -108,7 +108,7 @@ func TestFireJobOverlappingAdjacentSlots(t *testing.T) { t.Fatalf("already claimed slot became available: claimed=%v err=%v", claimed, err) } } - runs, err := stores[0].Runs(job.ID) + runs, err := stores[0].Runs(job.ID, 0) if err != nil || len(runs) != 2 { t.Fatalf("runs=%v err=%v", runs, err) } @@ -150,7 +150,7 @@ func TestFireJobCompletionReadErrorDoesNotOverwriteState(t *testing.T) { if want := "fired " + job.ID + " -> exit 0 (next: unknown)\n"; stdout.String() != want { t.Fatalf("completion summary = %q; want %q", stdout.String(), want) } - runs, err := store.Runs(job.ID) + runs, err := store.Runs(job.ID, 0) if err != nil || len(runs) != 1 || runs[0].ExitCode != 0 { t.Fatalf("execution should still be recorded: runs=%v err=%v", runs, err) } From 78dfccae1cf90fda008c2cfb7bb381c22142742a Mon Sep 17 00:00:00 2001 From: Kevin Codex Date: Mon, 12 Oct 2026 10:35:16 +0800 Subject: [PATCH 2/2] fix: bump Go to 1.26.9 for stdlib vulnerability fixes govulncheck reports ten reachable standard-library vulnerabilities on Go 1.26.6, all fixed in 1.26.9: GO-2026-6603, 6605, 6610, 6611, 6612, 6613 and 6617 in net/http, GO-2026-6608 in net/textproto, GO-2026-6607 in crypto/tls, and GO-2026-6604 in os (Windows only). CI and release workflows read the toolchain from go.mod, so the go directive is the only version to change. Update the stated source-build minimum in the READMEs and install guide to match. --- README.md | 4 ++-- README_ZH.md | 4 ++-- docs/INSTALL.md | 4 ++-- go.mod | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7fa64e98d..037b7b628 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@

license - Go 1.26.6+ + Go 1.26.9+ 25+ providers Discord
@@ -76,7 +76,7 @@ irm https://raw.githubusercontent.com/Gitlawb/zero/main/scripts/install.ps1 | ie ### From source -Source builds require Go 1.26.6+. +Source builds require Go 1.26.9+. ```bash git clone https://github.com/Gitlawb/zero.git diff --git a/README_ZH.md b/README_ZH.md index 9ff7f7b84..c91d45458 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -6,7 +6,7 @@

license - Go 1.26.6+ + Go 1.26.9+ 25+ providers Discord
@@ -57,7 +57,7 @@ irm https://raw.githubusercontent.com/Gitlawb/zero/main/scripts/install.ps1 | ie ### 从源码构建 -源码构建需要 Go 1.26.6+。 +源码构建需要 Go 1.26.9+。 ```bash git clone https://github.com/Gitlawb/zero.git diff --git a/docs/INSTALL.md b/docs/INSTALL.md index d0163169b..2126d2fb3 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -153,7 +153,7 @@ describe a version that is no longer on disk. Prefer `mise upgrade`. go install github.com/Gitlawb/zero/cmd/zero@latest ``` -This builds from source, so it needs Go 1.26.6+ and it does not go through the +This builds from source, so it needs Go 1.26.9+ and it does not go through the release archives. Two consequences worth knowing before you pick it: - On Linux you also need the sandbox helper, which is a separate binary and is @@ -180,7 +180,7 @@ Build a local binary: go build -o zero ./cmd/zero ``` -Source builds require Go 1.26.6+. +Source builds require Go 1.26.9+. ### Sandbox Helpers For Source Builds diff --git a/go.mod b/go.mod index 18abcd401..dd2ef6a9a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/Gitlawb/zero -go 1.26.6 +go 1.26.9 require ( charm.land/bubbles/v2 v2.1.1