From 1c68ad08a9adf5c426e1b61035f9885390342ee9 Mon Sep 17 00:00:00 2001 From: Pedro Franco de Carvalho Date: Tue, 18 Feb 2025 20:19:39 -0300 Subject: [PATCH 1/2] Revert "fix: fix slice init length (#3785)" This reverts commit 0240f85adcd1a5b448841dac5bc1b4c6dc9e2301. Reverted to handle a release issue. --- pki/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pki/util.go b/pki/util.go index 9f093af4..b052ff80 100644 --- a/pki/util.go +++ b/pki/util.go @@ -506,8 +506,8 @@ func DeepEqualIPsAltNames(oldIPs, newIPs []net.IP) bool { if len(oldIPs) != len(newIPs) { return false } - oldIPsStrings := make([]string, 0, len(oldIPs)) - newIPsStrings := make([]string, 0, len(newIPs)) + oldIPsStrings := make([]string, len(oldIPs)) + newIPsStrings := make([]string, len(newIPs)) for i := range oldIPs { oldIPsStrings = append(oldIPsStrings, oldIPs[i].String()) newIPsStrings = append(newIPsStrings, newIPs[i].String()) From e00cc5f3ffd40694833ce21ae77dbb89043600e5 Mon Sep 17 00:00:00 2001 From: Pedro Franco de Carvalho Date: Tue, 18 Feb 2025 20:21:30 -0300 Subject: [PATCH 2/2] Remove linter configuration verification --- .github/workflows/workflow.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 2983c441..3185bc19 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -37,6 +37,7 @@ jobs: uses: golangci/golangci-lint-action@v6 with: version: v1.58 + verify: false - name: Run CI run: | ./scripts/ci