diff --git a/pkg/client/build.go b/pkg/client/build.go index b22710437b..c942bb5a91 100644 --- a/pkg/client/build.go +++ b/pkg/client/build.go @@ -363,7 +363,7 @@ func (c *Client) Build(ctx context.Context, opts BuildOptions) error { PreviousImage: opts.PreviousImage, Interactive: opts.Interactive, Termui: termui.NewTermui(), - OCIPath: ociPath, + OCIPath: ociPath, } lifecycleVersion := ephemeralBuilder.LifecycleDescriptor().Info.Version diff --git a/pkg/client/build_test.go b/pkg/client/build_test.go index 197b22dcff..a5d9dafbcd 100644 --- a/pkg/client/build_test.go +++ b/pkg/client/build_test.go @@ -2537,6 +2537,7 @@ func testBuild(t *testing.T, when spec.G, it spec.S) { OCIPath: "does/not/exist", }) h.AssertError(t, err, "no such file or directory") + h.AssertError(t, err, "invalid oci path") }) }) })