From a4407e1192dc846d4ae9448d56b7741d4679c174 Mon Sep 17 00:00:00 2001 From: Thomas Rooney Date: Thu, 12 Nov 2026 13:20:14 +0000 Subject: [PATCH] fix(go,cli,mockserver,terraform): bump staticcheck to v0.8.2 for Go 1.27.2 Go 1.27.2 changed the compiler export data format. staticcheck v0.8.1 cannot read it, so the post-generation lint step failed with "export data version 5 is greater than maximum supported version 4" whenever the local toolchain was Go 1.27.2 or newer. staticcheck v0.8.2 (2026.2.2) supports the new format. Co-Authored-By: Claude Fable 5.2 --- .changesets/1794489558-4204c7f1.yaml | 13 +++++++++++++ templates/templates/cli/config.ts | 2 +- templates/templates/go/config.ts | 2 +- templates/templates/mockserver/config.ts | 2 +- templates/templates/terraform/config.ts | 2 +- 5 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 .changesets/1794489558-4204c7f1.yaml diff --git a/.changesets/1794489558-4204c7f1.yaml b/.changesets/1794489558-4204c7f1.yaml new file mode 100644 index 000000000..2fb39db53 --- /dev/null +++ b/.changesets/1794489558-4204c7f1.yaml @@ -0,0 +1,13 @@ +id: 1794489558-4204c7f1 +features: + - core +targets: + - go + - cli + - mockserver + - terraform +type: fix +bump: patch +description: bump staticcheck pin from v0.8.1 to v0.8.2 for Go 1.27.2 support +author: ThomasRooney +date: "2026-11-12" diff --git a/templates/templates/cli/config.ts b/templates/templates/cli/config.ts index cbb1a662d..7018f1d2c 100644 --- a/templates/templates/cli/config.ts +++ b/templates/templates/cli/config.ts @@ -682,7 +682,7 @@ function getLintConfiguration(): LintConfiguration { command: "go", args: [ "run", - "honnef.co/go/tools/cmd/staticcheck@v0.8.1", + "honnef.co/go/tools/cmd/staticcheck@v0.8.2", "-checks=inherit,-SA1019,-SA5008,-S1040,-U1000", "./...", ], diff --git a/templates/templates/go/config.ts b/templates/templates/go/config.ts index 488a11684..09f071327 100644 --- a/templates/templates/go/config.ts +++ b/templates/templates/go/config.ts @@ -512,7 +512,7 @@ function getLintConfiguration(): LintConfiguration { command: "go", args: [ "run", - "honnef.co/go/tools/cmd/staticcheck@v0.8.1", + "honnef.co/go/tools/cmd/staticcheck@v0.8.2", "-checks=inherit,-SA1019,-SA5008", "./...", ], diff --git a/templates/templates/mockserver/config.ts b/templates/templates/mockserver/config.ts index 2d43e11ff..f4441d91a 100644 --- a/templates/templates/mockserver/config.ts +++ b/templates/templates/mockserver/config.ts @@ -112,7 +112,7 @@ function getLintConfiguration(): LintConfiguration { command: "go", args: [ "run", - "honnef.co/go/tools/cmd/staticcheck@v0.8.1", + "honnef.co/go/tools/cmd/staticcheck@v0.8.2", "-checks=inherit,-SA1019,-SA5008", "./...", ], diff --git a/templates/templates/terraform/config.ts b/templates/templates/terraform/config.ts index 71e1199af..0d28ebfb1 100644 --- a/templates/templates/terraform/config.ts +++ b/templates/templates/terraform/config.ts @@ -579,7 +579,7 @@ function getLintConfiguration(): LintConfiguration { command: "go", args: [ "run", - "honnef.co/go/tools/cmd/staticcheck@v0.8.1", + "honnef.co/go/tools/cmd/staticcheck@v0.8.2", "-checks=inherit,-SA1019,-SA5008", "./...", ],