mirror of
https://gitee.com/johng/gf.git
synced 2024-11-29 18:57:44 +08:00
ci: add go version 1.23 support (#3733)
This commit is contained in:
parent
d8b06d056e
commit
fd33dcb97b
2
.github/workflows/ci-main.yml
vendored
2
.github/workflows/ci-main.yml
vendored
@ -185,7 +185,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ "1.18", "1.19", "1.20", "1.21", "1.22" ]
|
||||
go-version: [ "1.18", "1.19", "1.20", "1.21", "1.22", "1.23" ]
|
||||
goarch: [ "386", "amd64" ]
|
||||
|
||||
steps:
|
||||
|
2
.github/workflows/ci-sub.yml
vendored
2
.github/workflows/ci-sub.yml
vendored
@ -37,7 +37,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ "1.18", "1.19", "1.20", "1.22" ]
|
||||
go-version: [ "1.18", "1.19", "1.20", "1.22", "1.23" ]
|
||||
goarch: [ "386", "amd64" ]
|
||||
|
||||
steps:
|
||||
|
4
.github/workflows/golangci-lint.yml
vendored
4
.github/workflows/golangci-lint.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
||||
golangci:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ '1.18','1.19','1.20','1.21.4','1.22' ]
|
||||
go-version: [ '1.18','1.19','1.20','1.21.4','1.22','1.23' ]
|
||||
name: golangci-lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@ -50,5 +50,5 @@ jobs:
|
||||
uses: golangci/golangci-lint-action@v6
|
||||
with:
|
||||
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
||||
version: v1.58.2
|
||||
version: v1.60.1
|
||||
args: --timeout 3m0s
|
||||
|
@ -12,7 +12,6 @@ import (
|
||||
"github.com/gogf/gf/v2/container/gvar"
|
||||
"github.com/gogf/gf/v2/errors/gcode"
|
||||
"github.com/gogf/gf/v2/errors/gerror"
|
||||
"github.com/gogf/gf/v2/text/gstr"
|
||||
)
|
||||
|
||||
// Redis client.
|
||||
@ -48,12 +47,7 @@ const (
|
||||
errorNilRedis = `the Redis object is nil`
|
||||
)
|
||||
|
||||
var (
|
||||
errorNilAdapter = gstr.Trim(gstr.Replace(`
|
||||
redis adapter is not set, missing configuration or adapter register?
|
||||
possible reference: https://github.com/gogf/gf/tree/master/contrib/nosql/redis
|
||||
`, "\n", ""))
|
||||
)
|
||||
const errorNilAdapter = `redis adapter is not set, missing configuration or adapter register? possible reference: https://github.com/gogf/gf/tree/master/contrib/nosql/redis`
|
||||
|
||||
// initGroup initializes the group object of redis.
|
||||
func (r *Redis) initGroup() *Redis {
|
||||
|
Loading…
Reference in New Issue
Block a user