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 a goflags option to ko build #260

Merged
merged 1 commit into from
Apr 6, 2024
Merged

feat: add a goflags option to ko build #260

merged 1 commit into from
Apr 6, 2024

Conversation

ozym
Copy link
Contributor

@ozym ozym commented Apr 6, 2024

This extra flag allows passing in a GOFLAGS environment variable to ko and hence go, by default this is empty but with this update it will allow embedding variables (e.g. goflags: "-ldflags=-X=main.Release=${{ github.sha }}") as well as other go specific features.

This extra flag allows passing in a GOFLAGS environment variable to ko and hence go, by default this is empty but with this update it will allow embedding variables (e.g. goflags: "-ldflags=-X=main.Release=${{ github.sha }}") as well as other go specific features.
@ozym ozym requested a review from a team April 6, 2024 04:03
@ozym ozym self-assigned this Apr 6, 2024
@ozym ozym added the enhancement New feature or request label Apr 6, 2024
Copy link

@jajera jajera left a comment

Choose a reason for hiding this comment

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

noice

@ozym ozym merged commit 6add3d2 into main Apr 6, 2024
16 checks passed
@ozym ozym deleted the ko-goflags branch April 6, 2024 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants