From e4e40558ba9bd73296bd445337f5ad38db00dc6a Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 13 Jun 2024 21:50:12 +0200 Subject: [PATCH] builder/builder-next: gofmt Signed-off-by: Sebastiaan van Stijn --- builder/builder-next/builder.go | 2 +- builder/builder-next/executor_nolinux.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/builder-next/builder.go b/builder/builder-next/builder.go index ca1b0bff6c..be46b7a2e1 100644 --- a/builder/builder-next/builder.go +++ b/builder/builder-next/builder.go @@ -392,7 +392,7 @@ func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder. req := &controlapi.SolveRequest{ Ref: id, Exporters: []*controlapi.Exporter{ - &controlapi.Exporter{Type: exporterName, Attrs: exporterAttrs}, + {Type: exporterName, Attrs: exporterAttrs}, }, Frontend: "dockerfile.v0", FrontendAttrs: frontendAttrs, diff --git a/builder/builder-next/executor_nolinux.go b/builder/builder-next/executor_nolinux.go index 5c4ee6a72b..ef396376ea 100644 --- a/builder/builder-next/executor_nolinux.go +++ b/builder/builder-next/executor_nolinux.go @@ -22,11 +22,11 @@ func newExecutor(_, _ string, _ *libnetwork.Controller, _ *oci.DNSConfig, _ bool type stubExecutor struct{} func (w *stubExecutor) Run(ctx context.Context, id string, root executor.Mount, mounts []executor.Mount, process executor.ProcessInfo, started chan<- struct{}) (resourcetypes.Recorder, error) { - return nil, errors.New("buildkit executor not implemented for "+runtime.GOOS) + return nil, errors.New("buildkit executor not implemented for " + runtime.GOOS) } func (w *stubExecutor) Exec(ctx context.Context, id string, process executor.ProcessInfo) error { - return errors.New("buildkit executor not implemented for "+runtime.GOOS) + return errors.New("buildkit executor not implemented for " + runtime.GOOS) } func getDNSConfig(config.DNSConfig) *oci.DNSConfig {