ko icon indicating copy to clipboard operation
ko copied to clipboard

Support packaging go test binaries

Open jsok opened this issue 3 years ago • 3 comments

The ability to package the output of go test -c would be quite handy.

My use case here is for integration tests that get built from the same source as the binary, and the resultant image is used in a post-deployment verification phase (e.g. soon to be released skaffold verify capabilities).

jsok avatar Jun 02 '22 01:06 jsok

I bet you could do something like this with crane append and crane mutate --entrypoint as described in https://github.com/google/go-containerregistry/blob/main/cmd/crane/recipes.md#bundle-directory-contents-into-an-image

imjasonh avatar Jun 02 '22 01:06 imjasonh

Related: https://github.com/google/ko/issues/96

imjasonh avatar Jun 02 '22 02:06 imjasonh

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Keep fresh with the 'lifecycle/frozen' label.

github-actions[bot] avatar Sep 01 '22 01:09 github-actions[bot]