Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ko test command to build with go test -c #1407

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vincent-d
Copy link

Add a new command to build images with the output of go test -c.

It allows configuring build and LD flags in .ko.yaml with different values for build and test commands for a given importpath.

This is a new attempt at implementing #96 with a separate command.

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small comments for now

pkg/commands/test.go Outdated Show resolved Hide resolved
test/test/dummy_test.go Outdated Show resolved Hide resolved
Add a new command to build images with the output of go test -c.

It allows configuring build and LD flags in .ko.yaml with different
values for build and test commands for a given importpath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants