Skip to content

Commit cc3d47d

Browse files
authored
Update to Go 1.25 (#1577)
1 parent 3205d2e commit cc3d47d

File tree

21 files changed

+20
-27
lines changed

21 files changed

+20
-27
lines changed

.dprint.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"cwd": "${configDir}",
4242
"cacheKey": "4",
4343
"commands": [
44-
{ "command": "go tool mvdan.cc/gofumpt -lang=go1.24", "exts": ["go"] }
44+
{ "command": "go tool mvdan.cc/gofumpt -lang=go1.25", "exts": ["go"] }
4545
]
4646
},
4747
"excludes": [

.github/actions/setup-go/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Setup Go
44
inputs:
55
go-version:
66
description: Go version range to set up.
7-
default: '>=1.24.0'
7+
default: '>=1.25.0'
88
create:
99
description: Create the cache
1010
default: 'false'

.github/workflows/copilot-setup-steps.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ jobs:
2323
- uses: dtolnay/rust-toolchain@fcf085fcb4b4b8f63f96906cd713eb52181b5ea4 # stable
2424
- uses: ./.github/actions/setup-go
2525
with:
26-
# Updated to 1.25.0-rc.1 to improve compilation time
27-
go-version: '>=1.25.0-rc.1'
2826
lint-cache: 'true'
2927
- run: npm i -g @playwright/mcp@0.0.28
3028
- run: npm ci

.github/workflows/create-cache.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ jobs:
2828
- windows-latest
2929
- macos-latest
3030
go-version:
31-
- '>=1.24.0'
32-
33-
include:
34-
# Temporary for the Copilot setup steps
35-
- os: ubuntu-latest
36-
go-version: '>=1.25.0-rc.1'
31+
- '>=1.25.0'
3732

3833
runs-on: ${{ matrix.os }}
3934

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To use this, set this in your VS Code settings:
2323

2424
## How to Build and Run
2525

26-
This repo uses [Go 1.24 or higher](https://go.dev/dl/), [Rust 1.85 or higher](https://www.rust-lang.org/tools/install), [Node.js with npm](https://nodejs.org/), and [`hereby`](https://www.npmjs.com/package/hereby).
26+
This repo uses [Go 1.25 or higher](https://go.dev/dl/), [Rust 1.85 or higher](https://www.rust-lang.org/tools/install), [Node.js with npm](https://nodejs.org/), and [`hereby`](https://www.npmjs.com/package/hereby).
2727

2828
For tests and code generation, this repo contains a git submodule to the main TypeScript repo pointing to the commit being ported.
2929
When cloning, you'll want to clone with submodules:

_tools/customlint/testdata/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module testdata
22

3-
go 1.24.0
3+
go 1.25

_tools/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/microsoft/typescript-go/_tools
22

3-
go 1.24.0
3+
go 1.25
44

55
require (
66
github.com/golangci/plugin-module-register v0.1.2

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/microsoft/typescript-go
22

3-
go 1.24.2
3+
go 1.25
44

55
require (
66
github.com/dlclark/regexp2 v1.11.5

internal/api/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
//go:generate go tool golang.org/x/tools/cmd/stringer -type=MessageType -output=stringer_generated.go
21-
//go:generate go tool mvdan.cc/gofumpt -lang=go1.24 -w stringer_generated.go
21+
//go:generate go tool mvdan.cc/gofumpt -lang=go1.25 -w stringer_generated.go
2222

2323
type MessageType uint8
2424

internal/ast/kind.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ast
22

33
//go:generate go tool golang.org/x/tools/cmd/stringer -type=Kind -output=kind_stringer_generated.go
4-
//go:generate go tool mvdan.cc/gofumpt -lang=go1.24 -w kind_stringer_generated.go
4+
//go:generate go tool mvdan.cc/gofumpt -lang=go1.25 -w kind_stringer_generated.go
55

66
type Kind int16
77

0 commit comments

Comments
 (0)