Skip to content

Commit ab1970a

Browse files
authored
Upgrade to Go 1.24 (#885)
1 parent f5adc0a commit ab1970a

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install Go
2525
uses: actions/setup-go@v5
2626
with:
27-
go-version: '1.23'
27+
go-version: '1.24'
2828
cache: true
2929

3030
- name: Build
@@ -90,7 +90,7 @@ jobs:
9090
- name: Install Go
9191
uses: actions/setup-go@v5
9292
with:
93-
go-version: '1.23'
93+
go-version: '1.24'
9494
cache: true
9595

9696
- name: Run docker containers
@@ -161,7 +161,7 @@ jobs:
161161
- name: Install Go
162162
uses: actions/setup-go@v5
163163
with:
164-
go-version: '1.23'
164+
go-version: '1.24'
165165
cache: true
166166

167167
- name: Lint
@@ -186,7 +186,7 @@ jobs:
186186
- name: Install Go
187187
uses: actions/setup-go@v5
188188
with:
189-
go-version: '1.23'
189+
go-version: '1.24'
190190
cache: true
191191

192192
- name: Generate doc
@@ -210,7 +210,7 @@ jobs:
210210
- name: Install Go
211211
uses: actions/setup-go@v5
212212
with:
213-
go-version: '1.23'
213+
go-version: '1.24'
214214
cache: true
215215

216216
- name: Download dependencies

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Go
2121
uses: actions/setup-go@v5
2222
with:
23-
go-version: '1.23'
23+
go-version: '1.24'
2424
cache: true
2525

2626
- name: Run GoReleaser

build/package/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG APP_IMAGE=ubuntu:latest
22

33
# Build
4-
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS build
4+
FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS build
55

66
ARG VERSION
77
ARG BUILD_TIME

build/package/Dockerfile_dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG APP_IMAGE=ubuntu:22.04
22

33
# Build
4-
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS build
4+
FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS build
55

66
ARG VERSION
77
ARG BUILD_TIME

build/package/Dockerfile_playground

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG APP_IMAGE=alpine:latest
22

33
# Build
4-
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS build
4+
FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS build
55

66
ARG VERSION
77
ARG TARGETARCH

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/ozontech/file.d
22

3-
go 1.23
3+
go 1.24
44

5-
toolchain go1.23.7
5+
toolchain go1.24.6
66

77
require (
88
github.com/ClickHouse/ch-go v0.58.2

plugin/output/clickhouse/colgenerator/colgenerator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func main() {
4646
}
4747
result, err := format.Source(buf.Bytes())
4848
if err != nil {
49-
_, _ = fmt.Fprintf(os.Stderr, buf.String())
49+
_, _ = fmt.Fprint(os.Stderr, buf.String())
5050
logger.Panic(err)
5151
}
5252

plugin/output/s3/s3_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func fPutObjectOk(ctx context.Context, bucketName, objectName, filePath string,
6464
defer f.Close()
6565

6666
if _, err := f.WriteString(fmt.Sprintf("%s | from '%s' to b: `%s` as obj: `%s`\n", time.Now().String(), filePath, bucketName, objectName)); err != nil {
67-
return 0, fmt.Errorf(err.Error())
67+
return 0, fmt.Errorf("%s", err.Error())
6868
}
6969

7070
return 1, nil
@@ -93,7 +93,7 @@ func (put *putWithErr) fPutObjectErr(ctx context.Context, bucketName, objectName
9393
}
9494

9595
if _, err := f.WriteString(fmt.Sprintf("%s | from '%s' to b: `%s` as obj: `%s`\n", time.Now().String(), filePath, bucketName, objectName)); err != nil {
96-
return 0, fmt.Errorf(err.Error())
96+
return 0, fmt.Errorf("%s", err.Error())
9797
}
9898
return 1, nil
9999
default:

0 commit comments

Comments
 (0)