diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7ef86f52e..e850a3a08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: run: git fetch --prune --unshallow - uses: actions/setup-go@v6 with: - go-version: 1.25 + go-version: 1.26 check-latest: true - uses: goreleaser/goreleaser-action@v7.0.0 id: run-goreleaser diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml index 0754e9246..b360ccd57 100644 --- a/.github/workflows/style.yaml +++ b/.github/workflows/style.yaml @@ -27,7 +27,7 @@ jobs: go-version-file: go.mod - uses: golangci/golangci-lint-action@v9.2.0 with: - version: v2.10 + version: v2.11 - uses: chainguard-dev/actions/trailing-space@main if: ${{ always() }} diff --git a/cmd/krane/go.mod b/cmd/krane/go.mod index 6fe5a99d9..4f7809c32 100644 --- a/cmd/krane/go.mod +++ b/cmd/krane/go.mod @@ -1,6 +1,6 @@ module github.com/google/go-containerregistry/cmd/krane -go 1.25.6 +go 1.26.1 replace github.com/google/go-containerregistry => ../../ diff --git a/go.mod b/go.mod index fe837ce86..11270e526 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/google/go-containerregistry -go 1.25.6 +go 1.26.1 require ( github.com/containerd/stargz-snapshotter/estargz v0.18.2 diff --git a/pkg/authn/k8schain/go.mod b/pkg/authn/k8schain/go.mod index 0ac4c8a8f..81d77bc69 100644 --- a/pkg/authn/k8schain/go.mod +++ b/pkg/authn/k8schain/go.mod @@ -1,6 +1,6 @@ module github.com/google/go-containerregistry/pkg/authn/k8schain -go 1.25.6 +go 1.26.1 replace ( github.com/google/go-containerregistry => ../../../ diff --git a/pkg/authn/kubernetes/go.mod b/pkg/authn/kubernetes/go.mod index 5a3a0bf53..a533d41fc 100644 --- a/pkg/authn/kubernetes/go.mod +++ b/pkg/authn/kubernetes/go.mod @@ -1,6 +1,6 @@ module github.com/google/go-containerregistry/pkg/authn/kubernetes -go 1.25.6 +go 1.26.1 replace github.com/google/go-containerregistry => ../../../ diff --git a/pkg/name/registry_test.go b/pkg/name/registry_test.go index 9986ee66a..fd8822759 100644 --- a/pkg/name/registry_test.go +++ b/pkg/name/registry_test.go @@ -219,7 +219,7 @@ func TestRegistryScheme(t *testing.T) { domain: "index.docker.io", scheme: "https", }, { - domain: "::1", + domain: "[::1]", scheme: "http", }, { domain: "10.2.3.4:5000", diff --git a/pkg/v1/layout/layoutpath.go b/pkg/v1/layout/layoutpath.go index a031ff5ae..7014ca8c5 100644 --- a/pkg/v1/layout/layoutpath.go +++ b/pkg/v1/layout/layoutpath.go @@ -20,6 +20,6 @@ import "path/filepath" type Path string func (l Path) path(elem ...string) string { - complete := []string{string(l)} + complete := []string{string(l)} //nolint:prealloc return filepath.Join(append(complete, elem...)...) } diff --git a/pkg/v1/remote/descriptor_test.go b/pkg/v1/remote/descriptor_test.go index c0e6fa257..3d554e635 100644 --- a/pkg/v1/remote/descriptor_test.go +++ b/pkg/v1/remote/descriptor_test.go @@ -175,7 +175,7 @@ func TestHeadSchema1(t *testing.T) { } if desc.Size != int64(len(response)) { - t.Errorf("Descriptor.Size = %q, expected %q", desc.Size, len(response)) + t.Errorf("Descriptor.Size = %d, expected %d", desc.Size, len(response)) } }