From 306052defafc129f47beebbf74799f3f0abb8436 Mon Sep 17 00:00:00 2001 From: Thomas Cooper <57812123+coopernetes@users.noreply.github.com> Date: Sat, 14 Oct 2023 13:20:22 -0400 Subject: [PATCH] gofmt tidy --- cmd/container-structure-test/app/cmd/test.go | 2 +- pkg/config/options.go | 2 +- pkg/drivers/docker_driver.go | 2 +- pkg/drivers/driver.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/container-structure-test/app/cmd/test.go b/cmd/container-structure-test/app/cmd/test.go index bd5f7b4b..3bd944fc 100644 --- a/cmd/container-structure-test/app/cmd/test.go +++ b/cmd/container-structure-test/app/cmd/test.go @@ -173,7 +173,7 @@ func run(out io.Writer) error { logrus.Fatalf("error connecting to daemon: %v", err) } if err = client.PullImage(docker.PullImageOptions{ - Platform: opts.Platform, + Platform: opts.Platform, Repository: ref.Context().RepositoryStr(), Tag: ref.Identifier(), Registry: ref.Context().RegistryStr(), diff --git a/pkg/config/options.go b/pkg/config/options.go index 576af6a2..e819f1e4 100644 --- a/pkg/config/options.go +++ b/pkg/config/options.go @@ -22,7 +22,7 @@ type StructureTestOptions struct { DefaultImageTag string Driver string Runtime string - Platform string + Platform string Metadata string TestReport string ConfigFiles []string diff --git a/pkg/drivers/docker_driver.go b/pkg/drivers/docker_driver.go index 2dea126e..40960463 100644 --- a/pkg/drivers/docker_driver.go +++ b/pkg/drivers/docker_driver.go @@ -58,7 +58,7 @@ func NewDockerDriver(args DriverConfig) (Driver, error) { env: nil, save: args.Save, runtime: args.Runtime, - platform: args.Platform, + platform: args.Platform, runOpts: args.RunOpts, }, nil } diff --git a/pkg/drivers/driver.go b/pkg/drivers/driver.go index d743a85f..a2145696 100644 --- a/pkg/drivers/driver.go +++ b/pkg/drivers/driver.go @@ -33,7 +33,7 @@ type DriverConfig struct { Save bool // used by Docker/Tar drivers Metadata string // used by Host driver Runtime string // used by Docker driver - Platform string // used by Docker driver + Platform string // used by Docker driver RunOpts unversioned.ContainerRunOptions // used by Docker driver }