chore: upgrade go to 1.19 (#3677)

This commit is contained in:
Rene Leonhardt
2023-10-28 14:12:04 +02:00
committed by GitHub
parent 32600f2619
commit 34c5f6616c
9 changed files with 22 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
module github.com/zeromicro/go-zero/tools/goctl
go 1.18
go 1.19
require (
github.com/DATA-DOG/go-sqlmock v1.5.0

View File

@@ -1,4 +1,4 @@
FROM golang:1.18
FROM golang:1.19
ENV TZ Asia/Shanghai
ENV GOPROXY https://goproxy.cn,direct

View File

@@ -81,13 +81,13 @@ func Test_getRealModule(t *testing.T) {
"Path":"foo",
"Dir":"/home/foo",
"GoMod":"/home/foo/go.mod",
"GoVersion":"go1.18"
"GoVersion":"go1.19"
}
{
"Path":"bar",
"Dir":"/home/bar",
"GoMod":"/home/bar/go.mod",
"GoVersion":"go1.18"
"GoVersion":"go1.19"
}`, nil
},
},
@@ -95,7 +95,7 @@ func Test_getRealModule(t *testing.T) {
Path: "bar",
Dir: "/home/bar",
GoMod: "/home/bar/go.mod",
GoVersion: "go1.18",
GoVersion: "go1.19",
},
},
}
@@ -143,26 +143,26 @@ func TestDecodePackages(t *testing.T) {
"Path":"foo",
"Dir":"/home/foo",
"GoMod":"/home/foo/go.mod",
"GoVersion":"go1.18"
"GoVersion":"go1.19"
}
{
"Path":"bar",
"Dir":"/home/bar",
"GoMod":"/home/bar/go.mod",
"GoVersion":"go1.18"
"GoVersion":"go1.19"
}`),
want: []Module{
{
Path: "foo",
Dir: "/home/foo",
GoMod: "/home/foo/go.mod",
GoVersion: "go1.18",
GoVersion: "go1.19",
},
{
Path: "bar",
Dir: "/home/bar",
GoMod: "/home/bar/go.mod",
GoVersion: "go1.18",
GoVersion: "go1.19",
},
},
},
@@ -173,14 +173,14 @@ func TestDecodePackages(t *testing.T) {
"Path":"foo",
"Dir":"/home/foo",
"GoMod":"/home/foo/go.mod",
"GoVersion":"go1.18"
"GoVersion":"go1.19"
}`),
want: []Module{
{
Path: "foo",
Dir: "/home/foo",
GoMod: "/home/foo/go.mod",
GoVersion: "go1.18",
GoVersion: "go1.19",
},
},
},