Skip to content

Commit 6c8ca71

Browse files
authored
Merge pull request #1241 from ydb-platform/go1.20
* Downgraded minimal version of Go to 1.20
2 parents cf01642 + 049f4da commit 6c8ca71

File tree

18 files changed

+123
-31
lines changed

18 files changed

+123
-31
lines changed

.github/workflows/breaking.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Install Go
1919
uses: actions/setup-go@v5
2020
with:
21-
go-version: "1.21"
21+
go-version: "1.22"
2222
- name: Checkout code
2323
uses: actions/checkout@v4
2424
- name: Install gorelease

.github/workflows/check-codegen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ ubuntu-latest ]
17-
go-version: [1.21.x, 1.22.x]
17+
go-version: [1.20.x, 1.21.x, 1.22.x]
1818
runs-on: ${{ matrix.os }}
1919
steps:
2020
- name: Checkout

.github/workflows/examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
- 5432:5432
7171
env:
7272
OS: ubuntu-latest
73-
GO: 1.21.x
73+
GO: 1.20.x
7474
POSTGRES_CONNECTION_STRING: postgres://postgres:postgres@localhost:5432/basic?sslmode=disable
7575
steps:
7676
- name: Checkout code
@@ -93,7 +93,7 @@ jobs:
9393
application: [ gorm, xorm ]
9494
env:
9595
OS: ubuntu-latest
96-
GO: 1.21.x
96+
GO: 1.20.x
9797
SQLITE_CONNECTION_STRING: ${{ matrix.application }}.db
9898
steps:
9999
- name: Checkout code

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- name: Install Go
6666
uses: actions/setup-go@v5
6767
with:
68-
go-version: "1.21"
68+
go-version: "1.20"
6969
- name: Install utilities
7070
run: |
7171
go install mvdan.cc/[email protected]

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
go-version: [1.21.x, 1.22.x]
17+
go-version: [1.20.x, 1.21.x, 1.22.x]
1818
os: [ubuntu, windows, macOS]
1919
env:
2020
OS: ${{ matrix.os }}-latest
@@ -29,7 +29,7 @@ jobs:
2929
go-version: ${{ matrix.go-version }}
3030
cache: true
3131
- name: Test
32-
run: go test -race -coverprofile unit.txt -covermode atomic ./...
32+
run: go test -race -coverprofile unit.txt -covermode atomic -v ./...
3333
- name: Upload coverage report to Codecov
3434
uses: codecov/codecov-action@v4
3535
with:
@@ -44,7 +44,7 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
go-version: [1.21.x, 1.22.x]
47+
go-version: [1.20.x, 1.21.x, 1.22.x]
4848
ydb-version: [23.3, 24.1]
4949
services:
5050
ydb:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* Downgraded minimal version of Go to 1.20
12
* Refactored internal packages by `ifshort` linter issues
23

34
# v3.68.0

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ Supports `table`, `query`, `discovery`, `coordination`, `ratelimiter`, `scheme`,
1919

2020
## Supported Go Versions
2121

22-
`ydb-go-sdk` supports all Go versions supported by the official [Go Release Policy](https://go.dev/doc/devel/release#policy).
23-
That is, the two most recent releases of Go.
22+
`ydb-go-sdk` supports all Go versions supported by the official [Go Release Policy](https://go.dev/doc/devel/release#policy).
23+
That is, the latest two versions of Go (or more, but with no guarantees for extra versions).
24+
2425

2526
## Versioning Policy
2627

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/ydb-platform/ydb-go-sdk/v3
22

3-
go 1.21
3+
go 1.20
44

55
require (
66
github.com/golang-jwt/jwt/v4 v4.4.1

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
4747
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
4848
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
4949
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
50-
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
5150
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
5251
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
5352
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=

internal/pool/pool_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ func TestSafeStatsRace(t *testing.T) {
297297
wg sync.WaitGroup
298298
s = &safeStats{}
299299
)
300-
wg.Add(10000)
301-
for range make([]struct{}, 10000) {
300+
wg.Add(1000)
301+
for range make([]struct{}, 1000) {
302302
go func() {
303303
defer wg.Done()
304304
require.NotPanics(t, func() {

0 commit comments

Comments
 (0)