ko-build / ko-build/ko

Allow using `go test -c` as build command

Open
#96 8 comments 1 reaction 0 assignees View on GitHub
enhancement help wanted lifecycle/frozen
Dominant language
Go
Stars
8.5k
Forks
447
PR merge metrics
No merged PRs in 30d

Description

We often use `go test -c` to create binaries that need to run in a cluster to run their tests inside kubernetes. Currently `ko` only supports `go build` as a build command, so for these tests there is currently no way to be applied using `ko`.

I'd be really glad if a flag would allow me to change the build command.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how ko currently invokes go build and how build-command options are exposed. Check how a selectable command would support go test -c for binaries used in Kubernetes tests, then add coverage for the alternate command and verify the existing build path remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
cli, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.