Skip to content

Commit

Permalink
Run goimports (#51)
Browse files Browse the repository at this point in the history
find . -type f -name "*.go" -print0 | xargs --null goimports -w
  • Loading branch information
mtraver authored Nov 11, 2020
1 parent 3849c1a commit 423b53e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/buildpacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 423b53e

Please sign in to comment.