Skip to content

Commit

Permalink
Put full version of Go in go.mod while updating (#41563)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rdner authored Nov 8, 2024
1 parent 9c34e4e commit bfaa70f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/updatecli.d/bump-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit bfaa70f

Please sign in to comment.