From 9da94748c1767ee72473ba63fd8cf0e66be23837 Mon Sep 17 00:00:00 2001 From: Denis Rechkunov Date: Fri, 8 Nov 2024 12:08:12 +0100 Subject: [PATCH] Put full version of Go in go.mod while updating The previous configuration was always replacing the full version of Go with a minor version: 1.22.8 -> 1.22. Newer versions of Go now put the full version value in `go.mod`. This leads to our CI failing because `go mod tidy` causes a change in `go.mod`. This is to fix those failures. --- .github/workflows/updatecli.d/bump-golang.yml | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/updatecli.d/bump-golang.yml b/.github/workflows/updatecli.d/bump-golang.yml index 17235535060..f03c5471e63 100644 --- a/.github/workflows/updatecli.d/bump-golang.yml +++ b/.github/workflows/updatecli.d/bump-golang.yml @@ -87,7 +87,7 @@ targets: scmid: githubConfig kind: file spec: - content: 'go {{ source "gomod" }}' + content: 'go {{ source "latestGoVersion" }}' file: go.mod matchpattern: 'go \d+.\d+.\d+' update-go-version: diff --git a/go.mod b/go.mod index 989d625fb29..1500ae9b276 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/elastic/beats/v7 -go 1.22.0 +go 1.22.8 require ( cloud.google.com/go/bigquery v1.62.0