Skip to content

Commit 778d161

Browse files
authored
build: update to Go 1.23 (#524)
* build: update to Go 1.23 * ci: update tools
1 parent 64d7449 commit 778d161

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

ci/fmt.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
set -eu
33
cd -- "$(dirname "$0")/.."
44

5-
# Pin golang.org/x/tools, the go.mod of v0.25.0 is incompatible with Go 1.19.
6-
X_TOOLS_VERSION=v0.24.0
5+
X_TOOLS_VERSION=v0.31.0
76

87
go mod tidy
98
(cd ./internal/thirdparty && go mod tidy)

ci/lint.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ set -x
33
set -eu
44
cd -- "$(dirname "$0")/.."
55

6+
STATICCHECK_VERSION=v0.6.1
7+
GOVULNCHECK_VERSION=v1.1.4
8+
69
go vet ./...
710
GOOS=js GOARCH=wasm go vet ./...
811

9-
go install honnef.co/go/tools/cmd/staticcheck@v0.4.7
12+
go install honnef.co/go/tools/cmd/staticcheck@${STATICCHECK_VERSION}
1013
staticcheck ./...
1114
GOOS=js GOARCH=wasm staticcheck ./...
1215

@@ -16,7 +19,7 @@ govulncheck() {
1619
cat "$tmpf"
1720
fi
1821
}
19-
go install golang.org/x/vuln/cmd/govulncheck@v1.1.1
22+
go install golang.org/x/vuln/cmd/govulncheck@${GOVULNCHECK_VERSION}
2023
govulncheck ./...
2124
GOOS=js GOARCH=wasm govulncheck ./...
2225

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/coder/websocket
22

3-
go 1.19
3+
go 1.23

internal/examples/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/coder/websocket/examples
22

3-
go 1.19
3+
go 1.23
44

55
replace github.com/coder/websocket => ../..
66

internal/thirdparty/go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/coder/websocket/internal/thirdparty
22

3-
go 1.19
3+
go 1.23
44

55
replace github.com/coder/websocket => ../..
66

internal/thirdparty/go.sum

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm
1616
github.com/gin-gonic/gin v1.10.0 h1:nTuyha1TYqgedzytsKYqna+DfLos46nTv2ygFy86HFU=
1717
github.com/gin-gonic/gin v1.10.0/go.mod h1:4PMNQiOhvDRa013RKVbsiNwoyezlm2rm0uX/T7kzp5Y=
1818
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
19+
github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
1920
github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
2021
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
2122
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
@@ -31,6 +32,7 @@ github.com/gobwas/ws v1.4.0/go.mod h1:G3gNqMNtPppf5XUz7O4shetPpcZ1VJ7zt18dlUeakr
3132
github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
3233
github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
3334
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
35+
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
3436
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
3537
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
3638
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
@@ -96,6 +98,7 @@ golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk=
9698
golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
9799
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
98100
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
101+
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
99102
google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg=
100103
google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
101104
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=

0 commit comments

Comments
 (0)