From 4989f444f1085ac0ec6b9bc35de92dc22f3c9f5d Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Mon, 19 Dec 2022 22:24:05 +0100 Subject: [PATCH] revert: deprecation of containerArchitecture (#1514) * fix: ci snaphot job * revert: deprecation of containerArchitecture This option isn't part of parsed docker cli flags Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- .github/actions/choco/Dockerfile | 2 +- cmd/root.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/actions/choco/Dockerfile b/.github/actions/choco/Dockerfile index d301f0a..aabcb3a 100644 --- a/.github/actions/choco/Dockerfile +++ b/.github/actions/choco/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.16 +FROM alpine:3.17 ARG CHOCOVERSION=1.1.0 diff --git a/cmd/root.go b/cmd/root.go index 2a0baf0..92ae873 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -422,9 +422,6 @@ func newRunCommand(ctx context.Context, input *Input) func(*cobra.Command, []str if len(input.usernsMode) > 0 { log.Warnf(deprecationWarning, "userns", fmt.Sprintf("--userns=%s", input.usernsMode)) } - if len(input.containerArchitecture) > 0 { - log.Warnf(deprecationWarning, "container-architecture", fmt.Sprintf("--platform=%s", input.containerArchitecture)) - } if len(input.containerCapAdd) > 0 { log.Warnf(deprecationWarning, "container-cap-add", fmt.Sprintf("--cap-add=%s", input.containerCapAdd)) }