Skip to content

Commit 5237e80

Browse files
authored
fix panic on go 1.22.x (#44)
1 parent b7ec239 commit 5237e80

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

.github/workflows/go.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,22 @@
66
"build": {
77
"name": "Build",
88
"runs-on": "ubuntu-latest",
9+
"strategy": {
10+
"matrix": {
11+
"go": ["1.18.x","1.19.x","1.20.x","1.21.x","1.22.x"]
12+
},
13+
},
914
"steps": [
1015
{
11-
"name": "Set up Go 1.18",
12-
"uses": "actions/setup-go@v1",
13-
"with": {"go-version": 1.18},
16+
"name": "Set up Go ${{ matrix.go }}",
17+
"uses": "actions/setup-go@v5",
18+
"with": {"go-version": "${{ matrix.go }}" },
1419
"id": "go",
1520
},
16-
{"name": "Check out code into the Go module directory", "uses": "actions/checkout@v1"},
21+
{"name": "Check out code into the Go module directory", "uses": "actions/checkout@v4"},
1722
{"name": "Lint", "run": "make lint"},
1823
{"name": "Test", "run": "make test"},
1924
],
2025
},
2126
},
22-
}
27+
}

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ require (
77
github.com/go-toolsmith/pkgload v1.0.0
88
github.com/go-toolsmith/typep v1.0.0
99
github.com/kisielk/gotool v1.0.0
10-
golang.org/x/tools v0.11.0
10+
golang.org/x/tools v0.13.0
1111
)
1212

1313
require (
1414
golang.org/x/mod v0.12.0 // indirect
15-
golang.org/x/sys v0.10.0 // indirect
15+
golang.org/x/sync v0.7.0 // indirect
16+
golang.org/x/sys v0.12.0 // indirect
1617
)
1718

1819
go 1.20

go.sum

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=
1414
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
1515
golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
1616
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
17-
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
18-
golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
19-
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
17+
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
18+
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
19+
golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o=
20+
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
2021
golang.org/x/tools v0.0.0-20190110163146-51295c7ec13a/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
21-
golang.org/x/tools v0.11.0 h1:EMCa6U9S2LtZXLAMoWiR/R8dAQFRqbAitmbJ2UKhoi8=
22-
golang.org/x/tools v0.11.0/go.mod h1:anzJrxPjNtfgiYQYirP2CPGzGLxrH2u2QBhn6Bf3qY8=
22+
golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ=
23+
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=

0 commit comments

Comments
 (0)