From 423b53eb8a97134fd03232c6437cfadf185b0ff4 Mon Sep 17 00:00:00 2001 From: Michael Traver Date: Tue, 10 Nov 2020 17:05:53 -0800 Subject: [PATCH] Run goimports (#51) find . -type f -name "*.go" -print0 | xargs --null goimports -w --- client/buildpacks.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/buildpacks.go b/client/buildpacks.go index a6e3c0c..ba4365c 100644 --- a/client/buildpacks.go +++ b/client/buildpacks.go @@ -28,8 +28,8 @@ import ( ) const ( - image = "conformance-test-func" - builderURL = "us.gcr.io/fn-img/buildpacks/%s/builder:%s" + image = "conformance-test-func" + builderURL = "us.gcr.io/fn-img/buildpacks/%s/builder:%s" ) type buildpacksFunctionServer struct { @@ -74,13 +74,13 @@ func (b *buildpacksFunctionServer) OutputFile() ([]byte, error) { func (b *buildpacksFunctionServer) build(ctx context.Context) error { builder := fmt.Sprintf(builderURL, b.runtime, b.tag) - + cmd := exec.Command("docker", "pull", builder) output, err := cmd.CombinedOutput() if err != nil { return fmt.Errorf("failed to pull builder image %s: %v: %s", builder, err, string(output)) } - + packClient, err := pack.NewClient() if err != nil { return fmt.Errorf("getting pack client: %v", err)