1
0
mirror of https://github.com/ko-build/ko.git synced 2024-12-12 08:54:09 +02:00

Merge pull request #16 from dvrkps/patch-1

check NewGo error
This commit is contained in:
jonjohnsonjr 2019-03-22 12:37:24 -07:00 committed by GitHub
commit 3584e2d4d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {
@ -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 {