mirror of
https://github.com/siderolabs/image-factory.git
synced 2026-05-05 12:26:17 +02:00
chore: bump dependencies, rekres
Update Go modules, rekres, update to Go 1.22. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
parent
07095cd496
commit
81f2cb437f
@ -1,6 +1,6 @@
|
||||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
|
||||
#
|
||||
# Generated on 2023-09-15T13:38:02Z by kres latest.
|
||||
# Generated on 2024-02-27T12:16:46Z by kres latest.
|
||||
|
||||
codecov:
|
||||
require_ci_to_pass: false
|
||||
@ -9,7 +9,7 @@ coverage:
|
||||
status:
|
||||
project:
|
||||
default:
|
||||
target: 25%
|
||||
target: 10%
|
||||
threshold: 0.5%
|
||||
base: auto
|
||||
if_ci_failed: success
|
||||
|
||||
@ -1,37 +1,48 @@
|
||||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
|
||||
#
|
||||
# Generated on 2023-08-10T17:01:31Z by kres c620938.
|
||||
# Generated on 2024-02-27T07:52:48Z by kres latest.
|
||||
|
||||
---
|
||||
policies:
|
||||
- type: commit
|
||||
spec:
|
||||
dco: true
|
||||
gpg:
|
||||
required: true
|
||||
identity:
|
||||
gitHubOrganization: siderolabs
|
||||
spellcheck:
|
||||
locale: US
|
||||
maximumOfOneCommit: true
|
||||
header:
|
||||
length: 89
|
||||
imperative: true
|
||||
case: lower
|
||||
invalidLastCharacters: .
|
||||
body:
|
||||
required: true
|
||||
conventional:
|
||||
types: ["chore","docs","perf","refactor","style","test","release"]
|
||||
scopes: [".*"]
|
||||
- type: license
|
||||
spec:
|
||||
skipPaths:
|
||||
- .git/
|
||||
- testdata/
|
||||
includeSuffixes:
|
||||
- .go
|
||||
excludeSuffixes:
|
||||
- .pb.go
|
||||
- .pb.gw.go
|
||||
header: "// This Source Code Form is subject to the terms of the Mozilla Public\u000A// License, v. 2.0. If a copy of the MPL was not distributed with this\u000A// file, You can obtain one at http://mozilla.org/MPL/2.0/.\u000A"
|
||||
- type: commit
|
||||
spec:
|
||||
dco: true
|
||||
gpg:
|
||||
required: true
|
||||
identity:
|
||||
gitHubOrganization: siderolabs
|
||||
spellcheck:
|
||||
locale: US
|
||||
maximumOfOneCommit: true
|
||||
header:
|
||||
length: 89
|
||||
imperative: true
|
||||
case: lower
|
||||
invalidLastCharacters: .
|
||||
body:
|
||||
required: true
|
||||
conventional:
|
||||
types:
|
||||
- chore
|
||||
- docs
|
||||
- perf
|
||||
- refactor
|
||||
- style
|
||||
- test
|
||||
- release
|
||||
scopes:
|
||||
- .*
|
||||
- type: license
|
||||
spec:
|
||||
root: .
|
||||
skipPaths:
|
||||
- .git/
|
||||
- testdata/
|
||||
includeSuffixes:
|
||||
- .go
|
||||
excludeSuffixes:
|
||||
- .pb.go
|
||||
- .pb.gw.go
|
||||
header: |
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
@ -1,6 +1,6 @@
|
||||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
|
||||
#
|
||||
# Generated on 2023-12-11T14:43:26Z by kres latest.
|
||||
# Generated on 2024-02-27T07:52:48Z by kres latest.
|
||||
|
||||
name: default
|
||||
concurrency:
|
||||
@ -31,7 +31,7 @@ jobs:
|
||||
if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/'))
|
||||
services:
|
||||
buildkitd:
|
||||
image: moby/buildkit:v0.12.4
|
||||
image: moby/buildkit:v0.12.5
|
||||
options: --privileged
|
||||
ports:
|
||||
- 1234:1234
|
||||
@ -49,6 +49,7 @@ jobs:
|
||||
with:
|
||||
driver: remote
|
||||
endpoint: tcp://localhost:1234
|
||||
timeout-minutes: 1
|
||||
- name: base
|
||||
run: |
|
||||
make base
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
|
||||
#
|
||||
# Generated on 2023-10-27T14:12:36Z by kres latest.
|
||||
# Generated on 2024-02-27T07:52:48Z by kres latest.
|
||||
|
||||
# options for analysis running
|
||||
run:
|
||||
@ -74,8 +74,6 @@ linters-settings:
|
||||
govet:
|
||||
check-shadowing: true
|
||||
enable-all: true
|
||||
disable:
|
||||
- loopclosure
|
||||
lll:
|
||||
line-length: 200
|
||||
tab-width: 4
|
||||
@ -153,6 +151,7 @@ linters:
|
||||
- inamedparam
|
||||
- testifylint # complains about our assert recorder and has a number of false positives for assert.Greater(t, thing, 1)
|
||||
- protogetter # complains about us using Value field on typed spec, instead of GetValue which has a different signature
|
||||
- perfsprint # complains about us using fmt.Sprintf in non-performance critical code, updating just kres took too long
|
||||
# abandoned linters for which golangci shows the warning that the repo is archived by the owner
|
||||
- interfacer
|
||||
- maligned
|
||||
|
||||
@ -117,4 +117,4 @@ spec:
|
||||
---
|
||||
kind: service.CodeCov
|
||||
spec:
|
||||
targetThreshold: 25 # the actual coverage is much higher and reported from the integration test
|
||||
targetThreshold: 10 # the actual coverage is much higher and reported from the integration test
|
||||
|
||||
@ -2,16 +2,16 @@
|
||||
|
||||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
|
||||
#
|
||||
# Generated on 2024-01-25T16:14:09Z by kres latest.
|
||||
# Generated on 2024-02-27T07:52:48Z by kres latest.
|
||||
|
||||
ARG TOOLCHAIN
|
||||
|
||||
FROM alpine:3.18 AS base-image-image-factory
|
||||
|
||||
# runs markdownlint
|
||||
FROM docker.io/node:21.5.0-alpine3.19 AS lint-markdown
|
||||
FROM docker.io/node:21.6.2-alpine3.19 AS lint-markdown
|
||||
WORKDIR /src
|
||||
RUN npm i -g markdownlint-cli@0.38.0
|
||||
RUN npm i -g markdownlint-cli@0.39.0
|
||||
RUN npm i sentences-per-line@0.2.1
|
||||
COPY .markdownlint.json .
|
||||
COPY ./CHANGELOG.md ./CHANGELOG.md
|
||||
|
||||
23
Makefile
23
Makefile
@ -1,6 +1,6 @@
|
||||
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
|
||||
#
|
||||
# Generated on 2024-01-25T16:14:09Z by kres latest.
|
||||
# Generated on 2024-02-27T07:52:48Z by kres latest.
|
||||
|
||||
# common variables
|
||||
|
||||
@ -16,18 +16,17 @@ USERNAME ?= siderolabs
|
||||
REGISTRY_AND_USERNAME ?= $(REGISTRY)/$(USERNAME)
|
||||
PROTOBUF_GO_VERSION ?= 1.32.0
|
||||
GRPC_GO_VERSION ?= 1.3.0
|
||||
GRPC_GATEWAY_VERSION ?= 2.19.0
|
||||
VTPROTOBUF_VERSION ?= 0.5.0
|
||||
DEEPCOPY_VERSION ?= v0.5.5
|
||||
GOLANGCILINT_VERSION ?= v1.55.2
|
||||
GOFUMPT_VERSION ?= v0.5.0
|
||||
GO_VERSION ?= 1.21.6
|
||||
GOIMPORTS_VERSION ?= v0.17.0
|
||||
GRPC_GATEWAY_VERSION ?= 2.19.1
|
||||
VTPROTOBUF_VERSION ?= 0.6.0
|
||||
DEEPCOPY_VERSION ?= v0.5.6
|
||||
GOLANGCILINT_VERSION ?= v1.56.2
|
||||
GOFUMPT_VERSION ?= v0.6.0
|
||||
GO_VERSION ?= 1.22.0
|
||||
GOIMPORTS_VERSION ?= v0.18.0
|
||||
GO_BUILDFLAGS ?=
|
||||
GO_LDFLAGS ?=
|
||||
CGO_ENABLED ?= 0
|
||||
GOTOOLCHAIN ?= local
|
||||
GOEXPERIMENT ?= loopvar
|
||||
TESTPKGS ?= ./...
|
||||
KRES_IMAGE ?= ghcr.io/siderolabs/kres:latest
|
||||
CONFORMANCE_IMAGE ?= ghcr.io/siderolabs/conform:latest
|
||||
@ -65,7 +64,7 @@ COMMON_ARGS += --build-arg=GOLANGCILINT_VERSION="$(GOLANGCILINT_VERSION)"
|
||||
COMMON_ARGS += --build-arg=GOIMPORTS_VERSION="$(GOIMPORTS_VERSION)"
|
||||
COMMON_ARGS += --build-arg=GOFUMPT_VERSION="$(GOFUMPT_VERSION)"
|
||||
COMMON_ARGS += --build-arg=TESTPKGS="$(TESTPKGS)"
|
||||
TOOLCHAIN ?= docker.io/golang:1.21-alpine
|
||||
TOOLCHAIN ?= docker.io/golang:1.22-alpine
|
||||
|
||||
# extra variables
|
||||
|
||||
@ -131,7 +130,7 @@ endif
|
||||
ifneq (, $(filter $(WITH_DEBUG), t true TRUE y yes 1))
|
||||
GO_BUILDFLAGS += -tags sidero.debug
|
||||
else
|
||||
GO_LDFLAGS += -s -w
|
||||
GO_LDFLAGS += -s
|
||||
endif
|
||||
|
||||
all: unit-tests image-factory image-image-factory integration.test integration lint
|
||||
@ -158,7 +157,7 @@ lint-gofumpt: ## Runs gofumpt linter.
|
||||
.PHONY: fmt
|
||||
fmt: ## Formats the source code
|
||||
@docker run --rm -it -v $(PWD):/src -w /src golang:$(GO_VERSION) \
|
||||
bash -c "export GOEXPERIMENT=loopvar; export GOTOOLCHAIN=local; \
|
||||
bash -c "export GOTOOLCHAIN=local; \
|
||||
export GO111MODULE=on; export GOPROXY=https://proxy.golang.org; \
|
||||
go install mvdan.cc/gofumpt@$(GOFUMPT_VERSION) && \
|
||||
gofumpt -w ."
|
||||
|
||||
112
go.mod
112
go.mod
@ -1,43 +1,43 @@
|
||||
module github.com/siderolabs/image-factory
|
||||
|
||||
go 1.21.6
|
||||
go 1.22.0
|
||||
|
||||
require (
|
||||
github.com/blang/semver/v4 v4.0.0
|
||||
github.com/google/go-containerregistry v0.18.0
|
||||
github.com/google/go-containerregistry v0.19.0
|
||||
github.com/h2non/filetype v1.1.3
|
||||
github.com/julienschmidt/httprouter v1.3.0
|
||||
github.com/opencontainers/go-digest v1.0.0
|
||||
github.com/prometheus/client_golang v1.18.0
|
||||
github.com/siderolabs/gen v0.4.7
|
||||
github.com/siderolabs/go-debug v0.2.3
|
||||
github.com/siderolabs/go-debug v0.3.0
|
||||
github.com/siderolabs/go-pointer v1.0.0
|
||||
github.com/siderolabs/talos v1.6.0-alpha.2.0.20240123132418-e0dfbb8fba3c
|
||||
github.com/siderolabs/talos/pkg/machinery v1.6.0-alpha.2.0.20240123132418-e0dfbb8fba3c
|
||||
github.com/sigstore/cosign/v2 v2.2.2
|
||||
github.com/siderolabs/talos v1.7.0-alpha.0
|
||||
github.com/siderolabs/talos/pkg/machinery v1.7.0-alpha.0
|
||||
github.com/sigstore/cosign/v2 v2.2.3
|
||||
github.com/sigstore/sigstore v1.8.1
|
||||
github.com/slok/go-http-metrics v0.11.0
|
||||
github.com/stretchr/testify v1.8.4
|
||||
github.com/u-root/u-root v0.12.0
|
||||
github.com/u-root/u-root v0.13.1
|
||||
github.com/ulikunitz/xz v0.5.11
|
||||
go.uber.org/zap v1.26.0
|
||||
golang.org/x/net v0.20.0
|
||||
go.uber.org/zap v1.27.0
|
||||
golang.org/x/net v0.21.0
|
||||
golang.org/x/sync v0.6.0
|
||||
golang.org/x/sys v0.16.0
|
||||
golang.org/x/sys v0.17.0
|
||||
gopkg.in/yaml.v3 v3.0.1
|
||||
)
|
||||
|
||||
require (
|
||||
cloud.google.com/go/compute v1.23.3 // indirect
|
||||
cloud.google.com/go/compute/metadata v0.2.3 // indirect
|
||||
filippo.io/edwards25519 v1.0.0 // indirect
|
||||
filippo.io/edwards25519 v1.1.0 // indirect
|
||||
github.com/0x5a17ed/itkit v0.6.0 // indirect
|
||||
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect
|
||||
github.com/AdamKorcz/go-118-fuzz-build v0.0.0-20230306123547-8075edf89bb0 // indirect
|
||||
github.com/AliyunContainerService/ack-ram-tool/pkg/credentials/alibabacloudsdkgo/helper v0.2.0 // indirect
|
||||
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect
|
||||
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.1 // indirect
|
||||
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.0 // indirect
|
||||
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.5.1 // indirect
|
||||
github.com/Azure/azure-sdk-for-go/sdk/internal v1.5.1 // indirect
|
||||
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azcertificates v1.0.0 // indirect
|
||||
github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azkeys v1.0.1 // indirect
|
||||
@ -72,17 +72,17 @@ require (
|
||||
github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2 // indirect
|
||||
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
|
||||
github.com/aws/aws-sdk-go-v2 v1.24.1 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/config v1.26.4 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.16.15 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/config v1.26.6 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.16.16 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.11 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.10 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.10 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.7.2 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.7.3 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/ecr v1.20.2 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.18.2 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.4 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.10 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.18.6 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.18.7 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.21.7 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.26.7 // indirect
|
||||
github.com/aws/smithy-go v1.19.0 // indirect
|
||||
@ -93,10 +93,10 @@ require (
|
||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||
github.com/chrismellard/docker-credential-acr-env v0.0.0-20230304212654-82a0ddb27589 // indirect
|
||||
github.com/clbanning/mxj/v2 v2.7.0 // indirect
|
||||
github.com/cloudflare/circl v1.3.5 // indirect
|
||||
github.com/cloudflare/circl v1.3.7 // indirect
|
||||
github.com/common-nighthawk/go-figure v0.0.0-20210622060536-734e95fb86be // indirect
|
||||
github.com/containerd/cgroups v1.1.0 // indirect
|
||||
github.com/containerd/containerd v1.7.12 // indirect
|
||||
github.com/containerd/containerd v1.7.13 // indirect
|
||||
github.com/containerd/continuity v0.4.2 // indirect
|
||||
github.com/containerd/fifo v1.1.0 // indirect
|
||||
github.com/containerd/go-cni v1.1.9 // indirect
|
||||
@ -110,19 +110,19 @@ require (
|
||||
github.com/cyberphone/json-canonicalization v0.0.0-20231011164504-785e29786b46 // indirect
|
||||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
||||
github.com/digitorus/pkcs7 v0.0.0-20230818184609-3a137a874352 // indirect
|
||||
github.com/digitorus/timestamp v0.0.0-20230902153158-687734543647 // indirect
|
||||
github.com/digitorus/timestamp v0.0.0-20231217203849-220c5c2851b7 // indirect
|
||||
github.com/dimchansky/utfbom v1.1.1 // indirect
|
||||
github.com/docker/cli v24.0.7+incompatible // indirect
|
||||
github.com/docker/distribution v2.8.3+incompatible // indirect
|
||||
github.com/docker/docker v24.0.7+incompatible // indirect
|
||||
github.com/docker/docker v25.0.2+incompatible // indirect
|
||||
github.com/docker/docker-credential-helpers v0.8.0 // indirect
|
||||
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c // indirect
|
||||
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||
github.com/ecks/uefi v0.0.0-20221116212947-caef65d070eb // indirect
|
||||
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
|
||||
github.com/fatih/color v1.16.0 // indirect
|
||||
github.com/felixge/httpsnoop v1.0.3 // indirect
|
||||
github.com/foxboron/go-uefi v0.0.0-20240111164744-359f0856f017 // indirect
|
||||
github.com/felixge/httpsnoop v1.0.4 // indirect
|
||||
github.com/foxboron/go-uefi v0.0.0-20240128152106-48be911532c2 // indirect
|
||||
github.com/freddierice/go-losetup/v2 v2.0.1 // indirect
|
||||
github.com/fsnotify/fsnotify v1.7.0 // indirect
|
||||
github.com/gertd/go-pluralize v0.2.1 // indirect
|
||||
@ -130,16 +130,16 @@ require (
|
||||
github.com/go-jose/go-jose/v3 v3.0.1 // indirect
|
||||
github.com/go-logr/logr v1.4.1 // indirect
|
||||
github.com/go-logr/stdr v1.2.2 // indirect
|
||||
github.com/go-openapi/analysis v0.21.4 // indirect
|
||||
github.com/go-openapi/errors v0.20.4 // indirect
|
||||
github.com/go-openapi/jsonpointer v0.20.0 // indirect
|
||||
github.com/go-openapi/jsonreference v0.20.2 // indirect
|
||||
github.com/go-openapi/loads v0.21.2 // indirect
|
||||
github.com/go-openapi/runtime v0.26.0 // indirect
|
||||
github.com/go-openapi/spec v0.20.11 // indirect
|
||||
github.com/go-openapi/strfmt v0.21.8 // indirect
|
||||
github.com/go-openapi/swag v0.22.4 // indirect
|
||||
github.com/go-openapi/validate v0.22.3 // indirect
|
||||
github.com/go-openapi/analysis v0.22.0 // indirect
|
||||
github.com/go-openapi/errors v0.21.0 // indirect
|
||||
github.com/go-openapi/jsonpointer v0.20.2 // indirect
|
||||
github.com/go-openapi/jsonreference v0.20.4 // indirect
|
||||
github.com/go-openapi/loads v0.21.5 // indirect
|
||||
github.com/go-openapi/runtime v0.27.1 // indirect
|
||||
github.com/go-openapi/spec v0.20.13 // indirect
|
||||
github.com/go-openapi/strfmt v0.22.0 // indirect
|
||||
github.com/go-openapi/swag v0.22.9 // indirect
|
||||
github.com/go-openapi/validate v0.22.4 // indirect
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
|
||||
github.com/golang-jwt/jwt/v5 v5.2.0 // indirect
|
||||
@ -154,7 +154,7 @@ require (
|
||||
github.com/google/go-tpm v0.9.1-0.20230914180155-ee6cbcd136f8 // indirect
|
||||
github.com/google/gofuzz v1.2.0 // indirect
|
||||
github.com/google/nftables v0.1.0 // indirect
|
||||
github.com/google/uuid v1.5.0 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/gorilla/websocket v1.5.0 // indirect
|
||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 // indirect
|
||||
github.com/hashicorp/errwrap v1.1.0 // indirect
|
||||
@ -169,7 +169,7 @@ require (
|
||||
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
||||
github.com/josharian/intern v1.0.0 // indirect
|
||||
github.com/josharian/native v1.1.0 // indirect
|
||||
github.com/jsimonetti/rtnetlink v1.4.0 // indirect
|
||||
github.com/jsimonetti/rtnetlink v1.4.1 // indirect
|
||||
github.com/json-iterator/go v1.1.12 // indirect
|
||||
github.com/klauspost/compress v1.17.4 // indirect
|
||||
github.com/kylelemons/godebug v1.1.0 // indirect
|
||||
@ -200,7 +200,7 @@ require (
|
||||
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
|
||||
github.com/nozzle/throttler v0.0.0-20180817012639-2ea982251481 // indirect
|
||||
github.com/oklog/ulid v1.3.1 // indirect
|
||||
github.com/opencontainers/image-spec v1.1.0-rc5 // indirect
|
||||
github.com/opencontainers/image-spec v1.1.0-rc6 // indirect
|
||||
github.com/opencontainers/runtime-spec v1.1.0 // indirect
|
||||
github.com/opencontainers/selinux v1.11.0 // indirect
|
||||
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
||||
@ -216,7 +216,7 @@ require (
|
||||
github.com/prometheus/procfs v0.12.0 // indirect
|
||||
github.com/rs/xid v1.5.0 // indirect
|
||||
github.com/ryanuber/go-glob v1.0.0 // indirect
|
||||
github.com/sagikazarmark/locafero v0.3.0 // indirect
|
||||
github.com/sagikazarmark/locafero v0.4.0 // indirect
|
||||
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
|
||||
github.com/sassoftware/relic v7.2.1+incompatible // indirect
|
||||
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.22 // indirect
|
||||
@ -237,15 +237,15 @@ require (
|
||||
github.com/siderolabs/protoenc v0.2.1 // indirect
|
||||
github.com/sigstore/fulcio v1.4.3 // indirect
|
||||
github.com/sigstore/rekor v1.3.4 // indirect
|
||||
github.com/sigstore/timestamp-authority v1.2.0 // indirect
|
||||
github.com/sigstore/timestamp-authority v1.2.1 // indirect
|
||||
github.com/sirupsen/logrus v1.9.3 // indirect
|
||||
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect
|
||||
github.com/sourcegraph/conc v0.3.0 // indirect
|
||||
github.com/spf13/afero v1.10.0 // indirect
|
||||
github.com/spf13/cast v1.5.1 // indirect
|
||||
github.com/spf13/afero v1.11.0 // indirect
|
||||
github.com/spf13/cast v1.6.0 // indirect
|
||||
github.com/spf13/cobra v1.8.0 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
github.com/spf13/viper v1.17.0 // indirect
|
||||
github.com/spf13/viper v1.18.2 // indirect
|
||||
github.com/subosito/gotenv v1.6.0 // indirect
|
||||
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
|
||||
github.com/thales-e-security/pool v0.0.2 // indirect
|
||||
@ -253,38 +253,38 @@ require (
|
||||
github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 // indirect
|
||||
github.com/tjfoc/gmsm v1.4.1 // indirect
|
||||
github.com/transparency-dev/merkle v0.0.2 // indirect
|
||||
github.com/u-root/uio v0.0.0-20240209044354-b3d14b93376a // indirect
|
||||
github.com/vbatts/tar-split v0.11.5 // indirect
|
||||
github.com/vmware/vmw-guestinfo v0.0.0-20220317130741-510905f0efa3 // indirect
|
||||
github.com/vultr/metadata v1.1.0 // indirect
|
||||
github.com/xanzy/go-gitlab v0.94.0 // indirect
|
||||
go.mongodb.org/mongo-driver v1.12.1 // indirect
|
||||
github.com/xanzy/go-gitlab v0.96.0 // indirect
|
||||
go.mongodb.org/mongo-driver v1.13.1 // indirect
|
||||
go.opencensus.io v0.24.0 // indirect
|
||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0 // indirect
|
||||
go.opentelemetry.io/otel v1.21.0 // indirect
|
||||
go.opentelemetry.io/otel/metric v1.21.0 // indirect
|
||||
go.opentelemetry.io/otel/trace v1.21.0 // indirect
|
||||
go.step.sm/crypto v0.38.0 // indirect
|
||||
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect
|
||||
go.opentelemetry.io/otel v1.22.0 // indirect
|
||||
go.opentelemetry.io/otel/metric v1.22.0 // indirect
|
||||
go.opentelemetry.io/otel/trace v1.22.0 // indirect
|
||||
go.step.sm/crypto v0.42.1 // indirect
|
||||
go.uber.org/multierr v1.11.0 // indirect
|
||||
go4.org/netipx v0.0.0-20231129151722-fdeea329fbba // indirect
|
||||
golang.org/x/crypto v0.18.0 // indirect
|
||||
golang.org/x/crypto v0.19.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20231219180239-dc181d75b848 // indirect
|
||||
golang.org/x/mod v0.14.0 // indirect
|
||||
golang.org/x/oauth2 v0.16.0 // indirect
|
||||
golang.org/x/term v0.16.0 // indirect
|
||||
golang.org/x/term v0.17.0 // indirect
|
||||
golang.org/x/text v0.14.0 // indirect
|
||||
golang.org/x/time v0.5.0 // indirect
|
||||
golang.org/x/tools v0.16.1 // indirect
|
||||
golang.org/x/tools v0.17.0 // indirect
|
||||
golang.zx2c4.com/wireguard/wgctrl v0.0.0-20230429144221-925a1e7659e6 // indirect
|
||||
google.golang.org/appengine v1.6.8 // indirect
|
||||
google.golang.org/genproto v0.0.0-20240102182953-50ed04b92917 // indirect
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20231212172506-995d672761c0 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240116215550-a9fa1716bcac // indirect
|
||||
google.golang.org/grpc v1.60.1 // indirect
|
||||
google.golang.org/genproto v0.0.0-20240116215550-a9fa1716bcac // indirect
|
||||
google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect
|
||||
google.golang.org/grpc v1.61.0 // indirect
|
||||
google.golang.org/protobuf v1.32.0 // indirect
|
||||
gopkg.in/go-jose/go-jose.v2 v2.6.1 // indirect
|
||||
gopkg.in/inf.v0 v0.9.1 // indirect
|
||||
gopkg.in/ini.v1 v1.67.0 // indirect
|
||||
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
|
||||
gopkg.in/yaml.v2 v2.4.0 // indirect
|
||||
k8s.io/api v0.29.1 // indirect
|
||||
k8s.io/apimachinery v0.29.1 // indirect
|
||||
@ -292,7 +292,7 @@ require (
|
||||
k8s.io/client-go v0.29.1 // indirect
|
||||
k8s.io/component-base v0.29.1 // indirect
|
||||
k8s.io/cri-api v0.29.1 // indirect
|
||||
k8s.io/klog/v2 v2.120.0 // indirect
|
||||
k8s.io/klog/v2 v2.120.1 // indirect
|
||||
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
|
||||
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
|
||||
rsc.io/qr v0.2.0 // indirect
|
||||
|
||||
@ -28,7 +28,7 @@ type imageHandler func(ctx context.Context, logger *zap.Logger, img v1.Image) er
|
||||
|
||||
// imageExportHandler exports the image for further processing.
|
||||
func imageExportHandler(exportHandler func(logger *zap.Logger, r io.Reader) error) imageHandler {
|
||||
return func(ctx context.Context, logger *zap.Logger, img v1.Image) error {
|
||||
return func(_ context.Context, logger *zap.Logger, img v1.Image) error {
|
||||
logger.Info("extracting the image")
|
||||
|
||||
r, w := io.Pipe()
|
||||
@ -60,7 +60,7 @@ func imageExportHandler(exportHandler func(logger *zap.Logger, r io.Reader) erro
|
||||
|
||||
// imageOCIHandler exports the image to the OCI format.
|
||||
func imageOCIHandler(path string) imageHandler {
|
||||
return func(ctx context.Context, logger *zap.Logger, img v1.Image) error {
|
||||
return func(_ context.Context, logger *zap.Logger, img v1.Image) error {
|
||||
if err := os.RemoveAll(path); err != nil {
|
||||
return fmt.Errorf("error removing the directory %q: %w", path, err)
|
||||
}
|
||||
|
||||
@ -103,7 +103,7 @@ type extensionsDescriptions map[string]struct {
|
||||
func (m *Manager) fetchOfficialExtensions(tag string) error {
|
||||
var extensions []ExtensionRef
|
||||
|
||||
if err := m.fetchImageByTag(ExtensionManifestImage, tag, ArchAmd64, imageExportHandler(func(logger *zap.Logger, r io.Reader) error {
|
||||
if err := m.fetchImageByTag(ExtensionManifestImage, tag, ArchAmd64, imageExportHandler(func(_ *zap.Logger, r io.Reader) error {
|
||||
var extractErr error
|
||||
|
||||
extensions, extractErr = extractExtensionList(r)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user