Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): upgrade go to 1.21 #1251

Merged
merged 2 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.19'
go-version: '1.21'

- uses: actions/cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.19'
go-version: '1.21'

- uses: dorny/paths-filter@v3
id: changes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.19'
go-version: '1.21'

- uses: actions/cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/docs/reference/deploy/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ binary and not the whole build environment. However, you need to have some
extra steps in place, such as copying SSL certificates.

```dockerfile
FROM golang:1.19.5-buster as builder
FROM golang:1.21.5-buster as builder

WORKDIR /workspace

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/steebchen/prisma-client-go

go 1.18
go 1.21

require (
github.com/joho/godotenv v1.5.1
Expand Down
2 changes: 1 addition & 1 deletion go.work
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
go 1.20
go 1.21

use (
test/integration
Expand Down
2 changes: 1 addition & 1 deletion test/integration/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module integration

go 1.18
go 1.21

replace github.com/steebchen/prisma-client-go => ../../
9 changes: 4 additions & 5 deletions test/setup/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@ import (
"time"
)

var source = rand.NewSource(time.Now().UnixNano())
var rng = rand.New(source)

var letters = []rune("abcdefghijklmnopqrstuvwxyz")

func randSeq(n int) string {
b := make([]rune, n)
for i := range b {
b[i] = letters[rand.Intn(len(letters))]
b[i] = letters[rng.Intn(len(letters))]
}
return string(b)
}

func init() {
rand.Seed(time.Now().UnixNano())
}

func RandomString() string {
return "go_client_db_" + randSeq(7)
}