Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renovate: fix renovate upgrade of Go toolchain #1579

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,6 @@
"Dockerfile"
],
},
// Upgrade the Go module directive, see:
// https://docs.renovatebot.com/modules/versioning/#go-modules-directive-versioning
// depName is 'go' so it will be group with the 'Go' groupName
{
"matchDatasources": ["golang-version"],
"rangeStrategy": "bump",
},
{
"groupName": "Go",
"matchDepNames": [
Expand Down Expand Up @@ -349,11 +342,7 @@
"^\\.github/workflows/[^/]+\\.ya?ml$"
],
"matchStrings": [
// this regex is used to match both:
//
// # renovate: datasource=golang-version depName=go
// go: '1.20.8'
//
// this regex is used to match:
// # renovate: datasource=docker depName=quay.io/lvh-images/kernel-images
// - 'bpf-next-20230912.113936'
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+ ['\"]?(?<currentValue>[^'\"\\s]*)"
Expand Down Expand Up @@ -385,6 +374,16 @@
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+GOLANGCILINT_WANT_VERSION[[:blank:]]*=[[:blank:]]*(?<currentValue>[^\\s]*)"
]
},
{
"customType": "regex",
// match all go.mod in all subfolders
"fileMatch": [
"go\\.mod$"
],
"matchStrings": [
"// renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+go (?<currentValue>.*)"
]
}
]
}
1 change: 1 addition & 0 deletions api/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module github.com/cilium/tetragon/api

// renovate: datasource=golang-version depName=go
go 1.21.1

require (
Expand Down
1 change: 1 addition & 0 deletions contrib/rthooks/tetragon-oci-hook/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module github.com/cilium/tetragon/contrib/rthooks/tetragon-oci-hook

// renovate: datasource=golang-version depName=go
go 1.21.1

require (
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module github.com/cilium/tetragon

// renovate: datasource=golang-version depName=go
go 1.21.1

require (
Expand Down
1 change: 1 addition & 0 deletions pkg/k8s/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module github.com/cilium/tetragon/pkg/k8s

// renovate: datasource=golang-version depName=go
go 1.21.1

require (
Expand Down