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

Is build command removed? Getting unknown command "build" #589

Closed
Dentrax opened this issue Feb 10, 2022 · 1 comment
Closed

Is build command removed? Getting unknown command "build" #589

Dentrax opened this issue Feb 10, 2022 · 1 comment

Comments

@Dentrax
Copy link

Dentrax commented Feb 10, 2022

Fresh installed on macOS using $ brew reinstall ko

$ ko version
0.9.3

But I got the following error:

$ ko build

Error: unknown command "build" for "ko"
Run 'ko --help' for usage.
2022/02/10 09:53:41 error during command execution:unknown command "build" for "ko"

Any ideas on this? I couldn't figure it out.

Command: https://github.com/google/ko/blob/main/pkg/commands/build.go
I can see an integration test that calls build: https://github.com/google/ko/blob/00d0a34583b01b44548f70cdc84348c137921ed5/integration_test.sh#L61
publish is working by the way.

@imjasonh
Copy link
Member

ko build was introduced as an alias for ko publish since the last release (v0.9 right now). It's not released yet, but you can use it if you install from HEAD (like integration tests do).

When the next ko release happens (#584), ko build will be available, and ko publish will remain an alias for it, forever, for backward compatibility.

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

2 participants