-
Notifications
You must be signed in to change notification settings - Fork 408
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
how can I pass parameters to go build
when exec ko publish
#69
Comments
We don't do a great job of passing through flags to the underlying I dug around for a bit looking for the
Now, this isn't that great:
Ideally you could just do this:
But that is going to be tough... we currently have another flag (
This fails because I'm a little worried that the intersection of our flags, go's flags, and kubectl's flags is going to be a maintenance nightmare, but I'm sure we can figure something out. |
What about an all encompassing flag for build args? ie. |
The above being a catch-all while more common options could should promoted to first level flags. |
That doesn't seem like a big improvement over GOFLAGS. |
I definitely missed the second point :(
Yeah I agree - GOFLAGS accomplishes that
…On Wed, Aug 14, 2019 at 12:57 PM jonjohnsonjr ***@***.***> wrote:
That doesn't seem like a big improvement over GOFLAGS.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#69>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAERAT2LESIOXB6L4S2GNDQEQ2RPANCNFSM4ILGX7VQ>
.
|
I think |
GOFLAGS isnt sufficient for : I get |
Does this work?
|
Yep, thanks heaps cmd/server/main.go
prints
prints
prints |
In my Go project, I use
go build -tags 'dev'
to build dev version, and usego build -tags 'prod'
to build production version. When I calledko publish .
, it told me thatfailed to publish images: importpath "git.xxx.com/my-project" is not supported
I know that
ko
will callgo build
, but how can I pass-tags 'dev'
togo build
when execko publish
?The text was updated successfully, but these errors were encountered: