From 074d876448e5d75230782ba7676ce371ff7e2736 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 26 Feb 2025 10:42:15 +0100 Subject: [PATCH] renovate: clean up configuration The only direct dependency in go.mod is github.com/cilium/cilium which is updated manually before release (see https://github.com/cilium/cilium-cli/pull/2951). The Go version in go.mod is already excluded from being updated by renovate and because there are no other modules to update anymore we can omit go.mod from being updated by renovate altogether. Also remove some leftover configuration that no longer applies as a result of the merge of cilium-cli into github.com/cilium/cilium. Signed-off-by: Tobias Klauser --- .github/renovate.json5 | 34 ---------------------------------- go.mod | 1 - 2 files changed, 35 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 3b2ab8f714..d5be7fbfc2 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -11,15 +11,9 @@ includePaths: [ '.github/workflows/**', 'action.yaml', - 'defaults/defaults.go', - 'go.mod', - 'go.sum', 'Dockerfile', 'Makefile', ], - postUpdateOptions: [ - 'gomodTidy', - ], pinDigests: true, ignorePresets: [ ':prHourlyLimit2', @@ -57,25 +51,6 @@ 'pinDigest', ], }, - { - // Avoid updating patch releases of golang in go.mod - enabled: 'false', - matchFileNames: [ - 'go.mod', - ], - matchDepNames: [ - 'go', - ], - matchDatasources: [ - 'golang-version', - ], - matchUpdateTypes: [ - 'patch', - ], - matchBaseBranches: [ - 'main', - ], - }, { // Images that directly use docker.io/library/golang for building. groupName: 'golang-images', @@ -139,14 +114,5 @@ '# renovate: datasource=(?.*?) depName=(?.*?)\\s+.+_VERSION = (?.*)\\s+.+_SHA = (?sha256:[a-f0-9]+)', ], }, - { - customType: 'regex', - fileMatch: [ - '^go\\.mod$', - ], - matchStrings: [ - '// renovate: datasource=(?.*?) depName=(?.*?)\\s+go (?.*)', - ], - }, ], } diff --git a/go.mod b/go.mod index 6d7ee5064d..68aa081dde 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,5 @@ module github.com/cilium/cilium-cli -// renovate: datasource=golang-version depName=go go 1.23.0 // Replace directives from github.com/cilium/cilium. Keep in sync when updating Cilium!