From 66a3b79bffa345631103f285164bf330b53a6840 Mon Sep 17 00:00:00 2001 From: Dmitry Romanov Date: Tue, 9 Jul 2024 15:17:56 +0700 Subject: [PATCH] upgrade go version to 1.22 --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/release.yml | 2 +- build/package/Dockerfile | 2 +- build/package/Dockerfile_dev | 2 +- go.mod | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f30baa0b9..deb1e3ee5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version: '1.22' cache: true - name: Build @@ -65,7 +65,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version: '1.22' cache: true - name: Run docker containers @@ -115,7 +115,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version: '1.22' cache: true - name: Lint @@ -140,7 +140,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version: '1.22' cache: true - name: Generate doc @@ -164,7 +164,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version: '1.22' cache: true - name: Download dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cee4f0483..7e94f9c68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: '1.21' + go-version: '1.22' cache: true - name: Run GoReleaser diff --git a/build/package/Dockerfile b/build/package/Dockerfile index 7ce9030e4..db0b91cc7 100644 --- a/build/package/Dockerfile +++ b/build/package/Dockerfile @@ -1,7 +1,7 @@ ARG APP_IMAGE=ubuntu:latest # Build -FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS build +FROM --platform=$BUILDPLATFORM golang:1.22-alpine AS build ARG VERSION ARG BUILD_TIME diff --git a/build/package/Dockerfile_dev b/build/package/Dockerfile_dev index 0a7eaffb7..2dc621218 100644 --- a/build/package/Dockerfile_dev +++ b/build/package/Dockerfile_dev @@ -1,7 +1,7 @@ ARG APP_IMAGE=ubuntu:20.04 # Build -FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS build +FROM --platform=$BUILDPLATFORM golang:1.22-alpine AS build ARG VERSION ARG BUILD_TIME diff --git a/go.mod b/go.mod index 9f2489a48..7832f298b 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ module github.com/ozontech/file.d -go 1.21 +go 1.22 -toolchain go1.21.0 +toolchain go1.22.0 require ( github.com/ClickHouse/ch-go v0.58.2