File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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"' ,
You can’t perform that action at this time.
0 commit comments