diff --git a/pkg/build/gobuild.go b/pkg/build/gobuild.go index 124638bc0..7fd75f63e 100644 --- a/pkg/build/gobuild.go +++ b/pkg/build/gobuild.go @@ -1117,6 +1117,7 @@ func (g *gobuild) buildOne(ctx context.Context, refStr string, base v1.Image, pl "--log", "--accept-multiclient", "--api-version=2", + "--", } // Augment the base image with our application layer. diff --git a/pkg/build/gobuild_test.go b/pkg/build/gobuild_test.go index 2a0b89423..1211e928d 100644 --- a/pkg/build/gobuild_test.go +++ b/pkg/build/gobuild_test.go @@ -1496,6 +1496,7 @@ func TestDebugger(t *testing.T) { "--log", "--accept-multiclient", "--api-version=2", + "--", "/ko-app/ko", }