Skip to content

Commit

Permalink
Merge pull request ko-build#16 from dvrkps/patch-1
Browse files Browse the repository at this point in the history
check NewGo error
  • Loading branch information
jonjohnsonjr authored Mar 22, 2019
2 parents eab537e + 2547a9c commit 3584e2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/build/gobuild_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ func TestGoBuildNoKoData(t *testing.T) {
WithBaseImages(func(string) (v1.Image, error) { return base, nil }),
withBuilder(writeTempFile),
)
if err != nil {
t.Fatalf("NewGo() = %v", err)
}

img, err := ng.Build(filepath.Join(importpath, "cmd", "ko"))
if err != nil {
Expand Down Expand Up @@ -170,6 +173,9 @@ func TestGoBuild(t *testing.T) {
WithBaseImages(func(string) (v1.Image, error) { return base, nil }),
withBuilder(writeTempFile),
)
if err != nil {
t.Fatalf("NewGo() = %v", err)
}

img, err := ng.Build(filepath.Join(importpath, "cmd", "ko", "test"))
if err != nil {
Expand Down

0 comments on commit 3584e2d

Please sign in to comment.