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

Allow specifying multiple builds that reference the same dir/main, then specify which build ID when running ko build #1347

Open
ari-becker opened this issue Jun 24, 2024 · 2 comments

Comments

@ari-becker
Copy link

Feature request: allow specifying multiple builds that reference the same dir/main, then specify which build ID when running ko build, e.g. ko build --build-id=foo.

Why?

Go supports coverage profiling for integration tests, but the flag -cover must be added when running go build: https://go.dev/doc/build-cover . Because our integration suite is containerized, and I need a container of the Go service; if I'm using Ko to build the containers, then I would like one build without -cover (i.e. for production) and one build with -cover (i.e. for integration testing).

At the moment there is no way to handle this without separate configuration files and setting KO_CONFIG_PATH for the different configuration files.

Copy link

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.

@ari-becker
Copy link
Author

Keep fresh

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

No branches or pull requests

1 participant