Skip to content

Commit c50d83c

Browse files
authored
Support Go 1.22 and Go 1.23 (#203)
This change updates all `go.mod` and ci workflows to only support go1.22 and go1.23. Although this will force users to upgrade to go1.22 to use the next release, it is technically in line with our release policy (see: https://github.com/uber-go/mock?tab=readme-ov-file#supported-go-versions) and will allow us to merge #198 without using build tags for references to the new `*types.Alias` and `types.Unalias()`.
1 parent 33ccc99 commit c50d83c

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Go
2121
uses: actions/setup-go@v4
2222
with:
23-
go-version: 1.22.x
23+
go-version: 1.23.x
2424

2525
- name: Prepare release
2626
run: |

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
test:
1313
strategy:
1414
matrix:
15-
go-version: [1.19.x, 1.21.x, 1.22.x] # oldest version that can build go mock and official supported go versions
15+
go-version: [1.22.x, 1.23.x] # oldest version that can build go mock and official supported go versions
1616
os: [ubuntu-latest]
1717
runs-on: ${{ matrix.os }}
1818
steps:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module go.uber.org/mock
22

3-
go 1.19
3+
go 1.22
44

55
require (
66
golang.org/x/mod v0.18.0

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5t
33
golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0=
44
golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
55
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
6+
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
67
golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA=
78
golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c=

mockgen/internal/tests/generics/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module go.uber.org/mock/mockgen/internal/tests/generics
22

3-
go 1.19
3+
go 1.22
44

55
replace go.uber.org/mock => ../../../..
66

mockgen/internal/tests/typed/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module go.uber.org/mock/mockgen/internal/tests/typed
22

3-
go 1.19
3+
go 1.22
44

55
replace go.uber.org/mock => ../../../..
66

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/uber-go/mock/tools
22

3-
go 1.19
3+
go 1.22
44

55
require github.com/stretchr/testify v1.9.0
66

0 commit comments

Comments
 (0)