diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 182124e84e5..2cd8ca77b84 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -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": [ @@ -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=(?.*?) depName=(?.*?)\\s+.+ ['\"]?(?[^'\"\\s]*)" @@ -385,6 +374,16 @@ "matchStrings": [ "# renovate: datasource=(?.*?) depName=(?.*?)\\s+GOLANGCILINT_WANT_VERSION[[:blank:]]*=[[:blank:]]*(?[^\\s]*)" ] + }, + { + "customType": "regex", + // match all go.mod in all subfolders + "fileMatch": [ + "go\\.mod$" + ], + "matchStrings": [ + "// renovate: datasource=(?.*?) depName=(?.*?)\\s+go (?.*)" + ] } ] } diff --git a/api/go.mod b/api/go.mod index 2410a5a6632..40b6d318f6a 100644 --- a/api/go.mod +++ b/api/go.mod @@ -1,5 +1,6 @@ module github.com/cilium/tetragon/api +// renovate: datasource=golang-version depName=go go 1.21.1 require ( diff --git a/contrib/rthooks/tetragon-oci-hook/go.mod b/contrib/rthooks/tetragon-oci-hook/go.mod index 6dc449ca04e..bd82d405135 100644 --- a/contrib/rthooks/tetragon-oci-hook/go.mod +++ b/contrib/rthooks/tetragon-oci-hook/go.mod @@ -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 ( diff --git a/go.mod b/go.mod index ba9260f0386..27221b28be7 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,6 @@ module github.com/cilium/tetragon +// renovate: datasource=golang-version depName=go go 1.21.1 require ( diff --git a/pkg/k8s/go.mod b/pkg/k8s/go.mod index 45671a93a76..eb435922eee 100644 --- a/pkg/k8s/go.mod +++ b/pkg/k8s/go.mod @@ -1,5 +1,6 @@ module github.com/cilium/tetragon/pkg/k8s +// renovate: datasource=golang-version depName=go go 1.21.1 require (