Skip to content

Commit

Permalink
chore: update go version for building goctl releases (#4346)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Sep 1, 2024
1 parent e713d90 commit e94be9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ jobs:
- uses: actions/checkout@v4
- uses: zeromicro/go-zero-release-action@master
with:
go-version-file: go.mod
check-latest: true
cache: true
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.19.13.linux-amd64.tar.gz"
project_path: "tools/goctl"
binary_name: "goctl"
extra_files: tools/goctl/readme.md tools/goctl/readme-cn.md
18 changes: 9 additions & 9 deletions tools/goctl/util/ctx/gomod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,21 @@ func Test_getRealModule(t *testing.T) {
"Path":"foo",
"Dir":"/home/foo",
"GoMod":"/home/foo/go.mod",
"GoVersion":"go1.19"
"GoVersion":"go1.20"
}
{
"Path":"bar",
"Dir":"/home/bar",
"GoMod":"/home/bar/go.mod",
"GoVersion":"go1.19"
"GoVersion":"go1.20"
}`, nil
},
},
want: &Module{
Path: "bar",
Dir: "/home/bar",
GoMod: "/home/bar/go.mod",
GoVersion: "go1.19",
GoVersion: "go1.20",
},
},
}
Expand Down Expand Up @@ -143,26 +143,26 @@ func TestDecodePackages(t *testing.T) {
"Path":"foo",
"Dir":"/home/foo",
"GoMod":"/home/foo/go.mod",
"GoVersion":"go1.19"
"GoVersion":"go1.20"
}
{
"Path":"bar",
"Dir":"/home/bar",
"GoMod":"/home/bar/go.mod",
"GoVersion":"go1.19"
"GoVersion":"go1.20"
}`),
want: []Module{
{
Path: "foo",
Dir: "/home/foo",
GoMod: "/home/foo/go.mod",
GoVersion: "go1.19",
GoVersion: "go1.20",
},
{
Path: "bar",
Dir: "/home/bar",
GoMod: "/home/bar/go.mod",
GoVersion: "go1.19",
GoVersion: "go1.20",
},
},
},
Expand All @@ -173,14 +173,14 @@ func TestDecodePackages(t *testing.T) {
"Path":"foo",
"Dir":"/home/foo",
"GoMod":"/home/foo/go.mod",
"GoVersion":"go1.19"
"GoVersion":"go1.20"
}`),
want: []Module{
{
Path: "foo",
Dir: "/home/foo",
GoMod: "/home/foo/go.mod",
GoVersion: "go1.19",
GoVersion: "go1.20",
},
},
},
Expand Down

0 comments on commit e94be9b

Please sign in to comment.