Skip to content

Commit 4fb960c

Browse files
authored
feat(build): Move to Go 1.26 (#20988)
1 parent 57d1368 commit 4fb960c

File tree

26 files changed

+51
-47
lines changed

26 files changed

+51
-47
lines changed

.github/release-workflows.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ local checkTemplate = 'grafana/loki-release/.github/workflows/check.yml@%s' % re
77
local buildImageVersion = std.extVar('BUILD_IMAGE_VERSION');
88
local goVersion = std.extVar('GO_VERSION');
99
local buildImage = 'grafana/loki-build-image:%s' % buildImageVersion;
10-
local golangCiLintVersion = 'v2.5.0';
10+
local golangCiLintVersion = 'v2.10.1';
1111
local imageBuildTimeoutMin = 60;
1212
local imagePrefix = 'grafana';
1313
local dockerPluginDir = 'clients/cmd/docker-driver';

.github/workflows/build-loki-binary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
contents: read
1010

1111
env:
12-
GO_VERSION: "1.25.7"
12+
GO_VERSION: "1.26.0"
1313

1414
jobs:
1515
build:

.github/workflows/check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"check":
33
"uses": "grafana/loki-release/.github/workflows/check.yml@fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
44
"with":
5-
"build_image": "grafana/loki-build-image:0.34.10"
6-
"golang_ci_lint_version": "v2.5.0"
5+
"build_image": "grafana/loki-build-image:0.35.0"
6+
"golang_ci_lint_version": "v2.10.1"
77
"release_lib_ref": "fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
88
"skip_validation": false
99
"use_github_app_token": true
@@ -15,4 +15,4 @@
1515
- "main"
1616
"permissions":
1717
"contents": "read"
18-
"pull-requests": "read"
18+
"pull-requests": "read"

.github/workflows/images.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"check":
33
"uses": "grafana/loki-release/.github/workflows/check.yml@fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
44
"with":
5-
"build_image": "grafana/loki-build-image:0.34.10"
6-
"golang_ci_lint_version": "v2.5.0"
5+
"build_image": "grafana/loki-build-image:0.35.0"
6+
"golang_ci_lint_version": "v2.10.1"
77
"release_lib_ref": "fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
88
"skip_validation": false
99
"use_github_app_token": true
1010
"loki-canary-boringcrypto-image":
1111
"env":
1212
"BUILD_TIMEOUT": 60
13-
"GO_VERSION": "1.25.7"
13+
"GO_VERSION": "1.26.0"
1414
"IMAGE_PREFIX": "grafana"
1515
"RELEASE_LIB_REF": "fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
1616
"RELEASE_REPO": "grafana/loki"
@@ -134,7 +134,7 @@
134134
"loki-canary-image":
135135
"env":
136136
"BUILD_TIMEOUT": 60
137-
"GO_VERSION": "1.25.7"
137+
"GO_VERSION": "1.26.0"
138138
"IMAGE_PREFIX": "grafana"
139139
"RELEASE_LIB_REF": "fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
140140
"RELEASE_REPO": "grafana/loki"
@@ -258,7 +258,7 @@
258258
"loki-image":
259259
"env":
260260
"BUILD_TIMEOUT": 60
261-
"GO_VERSION": "1.25.7"
261+
"GO_VERSION": "1.26.0"
262262
"IMAGE_PREFIX": "grafana"
263263
"RELEASE_LIB_REF": "fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
264264
"RELEASE_REPO": "grafana/loki"
@@ -382,7 +382,7 @@
382382
"promtail-image":
383383
"env":
384384
"BUILD_TIMEOUT": 60
385-
"GO_VERSION": "1.25.7"
385+
"GO_VERSION": "1.26.0"
386386
"IMAGE_PREFIX": "grafana"
387387
"RELEASE_LIB_REF": "fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
388388
"RELEASE_REPO": "grafana/loki"
@@ -506,7 +506,7 @@
506506
"querytee-image":
507507
"env":
508508
"BUILD_TIMEOUT": 60
509-
"GO_VERSION": "1.25.7"
509+
"GO_VERSION": "1.26.0"
510510
"IMAGE_PREFIX": "grafana"
511511
"RELEASE_LIB_REF": "fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
512512
"RELEASE_REPO": "grafana/loki"
@@ -656,4 +656,4 @@
656656
"workflow_dispatch": {}
657657
"permissions":
658658
"contents": "read"
659-
"pull-requests": "read"
659+
"pull-requests": "read"

.github/workflows/logql-correctness.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Setup Go
5050
uses: actions/setup-go@v4
5151
with:
52-
go-version: "1.25.7"
52+
go-version: "1.26.0"
5353

5454
# The metastore generates invalid filenames for Windows (with colons),
5555
# which get rejected by upload-artifact. We zip these files to avoid this
@@ -96,7 +96,7 @@ jobs:
9696
- name: Setup Go
9797
uses: actions/setup-go@v4
9898
with:
99-
go-version: "1.25.7"
99+
go-version: "1.26.0"
100100

101101
- name: Create results directory
102102
run: mkdir -p ./pkg/logql/bench/results

.github/workflows/minor-release-pr.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
pull-requests: "write"
2222
uses: "grafana/loki-release/.github/workflows/check.yml@fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
2323
with:
24-
build_image: "grafana/loki-build-image:0.34.10"
25-
golang_ci_lint_version: "v2.5.0"
24+
build_image: "grafana/loki-build-image:0.35.0"
25+
golang_ci_lint_version: "v2.10.1"
2626
release_lib_ref: "fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
2727
skip_validation: false
2828
use_github_app_token: true
@@ -180,10 +180,10 @@ jobs:
180180
--env SKIP_ARM \
181181
--volume .:/src/loki \
182182
--workdir /src/loki \
183-
--entrypoint /bin/sh "grafana/loki-build-image:0.34.10"
183+
--entrypoint /bin/sh "grafana/loki-build-image:0.35.0"
184184
git config --global --add safe.directory /src/loki
185185
echo "${NFPM_SIGNING_KEY}" > $NFPM_SIGNING_KEY_FILE
186-
if echo "grafana/loki-build-image:0.34.10" | grep -q "golang"; then
186+
if echo "grafana/loki-build-image:0.35.0" | grep -q "golang"; then
187187
/src/loki/.github/vendor/github.com/grafana/loki-release/workflows/install_workflow_dependencies.sh dist
188188
fi
189189
make dist packages
@@ -799,7 +799,7 @@ jobs:
799799
build-args: |
800800
IMAGE_TAG=${{ needs.version.outputs.version }}
801801
GOARCH=${{ steps.platform.outputs.platform_short }}
802-
BUILD_IMAGE=grafana/loki-build-image:0.34.10
802+
BUILD_IMAGE=grafana/loki-build-image:0.35.0
803803
context: "release"
804804
file: "release/clients/cmd/docker-driver/Dockerfile"
805805
outputs: "type=local,dest=release/plugins/loki-docker-driver-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}"
@@ -1192,4 +1192,4 @@ name: "Prepare Minor Release PR from Weekly"
11921192
- "k[0-9]+"
11931193
permissions:
11941194
contents: "read"
1195-
pull-requests: "read"
1195+
pull-requests: "read"

.github/workflows/patch-release-pr.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
pull-requests: "write"
2222
uses: "grafana/loki-release/.github/workflows/check.yml@fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
2323
with:
24-
build_image: "grafana/loki-build-image:0.34.10"
25-
golang_ci_lint_version: "v2.5.0"
24+
build_image: "grafana/loki-build-image:0.35.0"
25+
golang_ci_lint_version: "v2.10.1"
2626
release_lib_ref: "fb3b12ec3e6411bcb951a5ea08cc983c2f2735fc"
2727
skip_validation: false
2828
use_github_app_token: true
@@ -180,10 +180,10 @@ jobs:
180180
--env SKIP_ARM \
181181
--volume .:/src/loki \
182182
--workdir /src/loki \
183-
--entrypoint /bin/sh "grafana/loki-build-image:0.34.10"
183+
--entrypoint /bin/sh "grafana/loki-build-image:0.35.0"
184184
git config --global --add safe.directory /src/loki
185185
echo "${NFPM_SIGNING_KEY}" > $NFPM_SIGNING_KEY_FILE
186-
if echo "grafana/loki-build-image:0.34.10" | grep -q "golang"; then
186+
if echo "grafana/loki-build-image:0.35.0" | grep -q "golang"; then
187187
/src/loki/.github/vendor/github.com/grafana/loki-release/workflows/install_workflow_dependencies.sh dist
188188
fi
189189
make dist packages
@@ -799,7 +799,7 @@ jobs:
799799
build-args: |
800800
IMAGE_TAG=${{ needs.version.outputs.version }}
801801
GOARCH=${{ steps.platform.outputs.platform_short }}
802-
BUILD_IMAGE=grafana/loki-build-image:0.34.10
802+
BUILD_IMAGE=grafana/loki-build-image:0.35.0
803803
context: "release"
804804
file: "release/clients/cmd/docker-driver/Dockerfile"
805805
outputs: "type=local,dest=release/plugins/loki-docker-driver-${{ needs.version.outputs.version}}-${{ steps.platform.outputs.platform }}"
@@ -1192,4 +1192,4 @@ name: "Prepare Patch Release PR"
11921192
- "release-[0-9]+.[0-9]+.x"
11931193
permissions:
11941194
contents: "read"
1195-
pull-requests: "read"
1195+
pull-requests: "read"

.github/workflows/querytee-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717
env:
1818
BUILD_TIMEOUT: 60
1919
IMAGE_PREFIX: grafana
20-
GO_VERSION: "1.25.7"
20+
GO_VERSION: "1.26.0"
2121

2222
jobs:
2323
loki-query-tee-image:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,4 +441,4 @@ name: "create release"
441441
- "main"
442442
permissions:
443443
contents: "read"
444-
pull-requests: "read"
444+
pull-requests: "read"

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ DOCKER_INTERACTIVE_FLAGS := --tty --interactive
2626
endif
2727

2828
# Ensure you run `make release-workflows` after changing this
29-
GO_VERSION := 1.25.7
29+
GO_VERSION := 1.26.0
3030
# Ensure you run `make IMAGE_TAG=<updated-tag> build-image-push` after changing this
31-
BUILD_IMAGE_TAG := 0.34.10
31+
BUILD_IMAGE_TAG := 0.35.0
3232

3333
IMAGE_TAG ?= $(shell ./tools/image-tag)
3434
GIT_REVISION := $(shell git rev-parse --short HEAD)

0 commit comments

Comments
 (0)