From dc37e80d175e333cb7eaf20711243a9532ce2bfa Mon Sep 17 00:00:00 2001 From: cpanato Date: Mon, 9 Sep 2024 21:04:04 -0500 Subject: [PATCH] upgrade to go1.23 Signed-off-by: cpanato --- .github/workflows/ci-build-test.yaml | 4 ++-- .github/workflows/release.yaml | 2 +- .github/workflows/snapshot.yaml | 2 +- .github/workflows/verify.yaml | 4 ++-- go.mod | 2 +- pkg/ctl/implementation.go | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-build-test.yaml b/.github/workflows/ci-build-test.yaml index 0c71ca8..4f67ea2 100644 --- a/.github/workflows/ci-build-test.yaml +++ b/.github/workflows/ci-build-test.yaml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v2.2.0 with: - go-version: '1.22' + go-version: '1.23' check-latest: true cache: true @@ -35,7 +35,7 @@ jobs: - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v2.2.0 with: - go-version: '1.22' + go-version: '1.23' check-latest: true cache: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0b3b203..1d9731f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,7 +26,7 @@ jobs: - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v3.3.0 with: - go-version: '1.22' + go-version: '1.23' check-latest: true - name: Install cosign diff --git a/.github/workflows/snapshot.yaml b/.github/workflows/snapshot.yaml index 4e2f5a0..c62c97b 100644 --- a/.github/workflows/snapshot.yaml +++ b/.github/workflows/snapshot.yaml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: '1.22' + go-version: '1.23' check-latest: true - name: Install GoReleaser diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index 9d15d29..6e8d2af 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -19,10 +19,10 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v3 with: - go-version: '1.22' + go-version: '1.23' check-latest: true cache: true - name: golangci-lint uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0 with: - version: v1.59 + version: v1.60 diff --git a/go.mod b/go.mod index 2ebd58d..4dc58ae 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/openvex/vexctl -go 1.22.5 +go 1.23.1 require ( github.com/google/go-containerregistry v0.20.2 diff --git a/pkg/ctl/implementation.go b/pkg/ctl/implementation.go index fbccd78..0b7b05c 100644 --- a/pkg/ctl/implementation.go +++ b/pkg/ctl/implementation.go @@ -582,7 +582,7 @@ func (impl *defaultVexCtlImplementation) NormalizeProducts(subjects []productRef case strings.HasPrefix(pref.Name, "pkg:"): // When there are other purls, we only attest them as subjects if // the product reference has hashes - if pref.Hashes != nil && len(pref.Hashes) > 0 { + if pref.Hashes != nil && len(pref.Hashes) > 0 { //nolint: gosimple otherRefs = append(otherRefs, pref) } else { unattestableRefs = append(unattestableRefs, pref)