From 4c4fadc0710283f3af06e2eaa91946c12b76eb86 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 29 Mar 2026 10:53:45 +0200 Subject: [PATCH] chore(deps): pin dependencies (master) (#2372) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jan-Otto Kröpke --- .github/workflows/lint.yml | 2 +- .github/workflows/spelling.yml | 2 +- .../collector/textfile/textfile_test_test.go | 16 +++++++--------- renovate.json | 14 ++++++++++++++ 4 files changed, 23 insertions(+), 11 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 923e335c..3074ee60 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -91,5 +91,5 @@ jobs: uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 with: # renovate: github=golangci/golangci-lint - version: v2.11.3 + version: v2.11.4 args: "--max-same-issues=0" diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index 48e3d10a..a555e4cb 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - uses: codespell-project/actions-codespell@master + - uses: codespell-project/actions-codespell@cf810cf4cbd6cdefe6ef86e55b64d524a16654a7 # master with: check_filenames: true # When using this Action in other repos, the --skip option below can be removed diff --git a/internal/collector/textfile/textfile_test_test.go b/internal/collector/textfile/textfile_test_test.go index 664b42d7..99920b54 100644 --- a/internal/collector/textfile/textfile_test_test.go +++ b/internal/collector/textfile/textfile_test_test.go @@ -48,7 +48,7 @@ func TestMultipleDirectories(t *testing.T) { require.NoError(t, collectors.Build(t.Context(), logger)) metrics := make(chan prometheus.Metric) - got := "" + got := strings.Builder{} errCh := make(chan error, 1) @@ -64,14 +64,13 @@ func TestMultipleDirectories(t *testing.T) { err := val.Write(&metric) require.NoError(t, err) - //nolint:modernize,perfsprint - got += metric.String() + got.WriteString(metric.String()) } require.NoError(t, <-errCh) for _, f := range []string{"dir1", "dir2", "dir3", "dir3sub"} { - require.Contains(t, got, f) + require.Contains(t, got.String(), f) } } @@ -87,7 +86,7 @@ func TestDuplicateFileName(t *testing.T) { require.NoError(t, collectors.Build(t.Context(), logger)) metrics := make(chan prometheus.Metric) - got := "" + got := strings.Builder{} errCh := make(chan error, 1) @@ -103,12 +102,11 @@ func TestDuplicateFileName(t *testing.T) { err := val.Write(&metric) require.NoError(t, err) - //nolint:perfsprint - got += metric.String() + got.WriteString(metric.String()) } require.ErrorContains(t, <-errCh, "duplicate filename detected") - require.Contains(t, got, "file") - require.NotContains(t, got, "sub_file") + require.Contains(t, got.String(), "file") + require.NotContains(t, got.String(), "sub_file") } diff --git a/renovate.json b/renovate.json index 7032dda1..2d526937 100644 --- a/renovate.json +++ b/renovate.json @@ -19,6 +19,20 @@ "matchUpdateTypes": ["major"], "enabled": false }, + { + "matchBaseBranches": ["/^[0-9]\\.[0-9][0-9]$/"], + "matchUpdateTypes": [ + "major" + ], + "enabled": false + }, + { + "matchBaseBranches": ["/^[0-9]\\.[0-9][0-9]$/"], + "matchManagers": [ + "github-actions" + ] + "enabled": false + }, { "groupName": "golangci-lint", "matchPackageNames": [