Skip to content

Commit 7bb59c4

Browse files
authored
ci: pin release validation Go toolchain (#105270)
1 parent 1999935 commit 7bb59c4

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,9 +1424,11 @@ jobs:
14241424

14251425
- name: Setup Go for docs i18n
14261426
if: matrix.requires_go == true
1427+
# The current workflow validates frozen targets whose go.mod may predate this patch pin.
1428+
# Keep the runner toolchain owned by the workflow while using the target only for cache keys.
14271429
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
14281430
with:
1429-
go-version-file: scripts/docs-i18n/go.mod
1431+
go-version: "1.25.12"
14301432
cache-dependency-path: scripts/docs-i18n/go.sum
14311433

14321434
- name: Verify docs i18n Go toolchain

‎test/scripts/ci-workflow-guards.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ describe("ci workflow guards", () => {
20842084
);
20852085
});
20862086

2087-
it("keeps docs i18n CI on the patched preferred Go toolchain", () => {
2087+
it("keeps docs i18n CI on the workflow-owned patched Go toolchain", () => {
20882088
const workflow = readCiWorkflow();
20892089
const nodeTestJob = workflow.jobs["checks-node-core-test-nondist-shard"];
20902090
const setupGoStep = nodeTestJob.steps.find(
@@ -2097,11 +2097,11 @@ describe("ci workflow guards", () => {
20972097
if: "matrix.requires_go == true",
20982098
uses: SETUP_GO_V6,
20992099
with: {
2100-
"go-version-file": "scripts/docs-i18n/go.mod",
2100+
"go-version": "1.25.12",
21012101
"cache-dependency-path": "scripts/docs-i18n/go.sum",
21022102
},
21032103
});
2104-
expect(setupGoStep.with).not.toHaveProperty("go-version");
2104+
expect(setupGoStep.with).not.toHaveProperty("go-version-file");
21052105
expect(verifyGoStep).toMatchObject({
21062106
if: "matrix.requires_go == true",
21072107
run: 'test "$(go env GOVERSION)" = "go1.25.12"',

0 commit comments

Comments
 (0)