ko-build / ko

Build and deploy Go applications
https://ko.build
Apache License 2.0
7.65k stars 401 forks source link

debugging: build command doesn't provide `--debug` on latest ko: consider releasing new version #1365

Closed Dentrax closed 2 weeks ago

Dentrax commented 3 months ago

As Debugging doc mentions --debug flag under How it works section, I can able to see this flag on CLI doc ref, whereas I couldn't see it on ko build --help output:

$ ko build --help | grep -A5 "Flags:"

Flags:
      --bare                     Whether to just use KO_DOCKER_REPO without additional context (may not work properly with --tags).
  -B, --base-import-paths        Whether to use the base path without MD5 hash after KO_DOCKER_REPO (may not work properly with --tags).
      --disable-optimizations    Disable optimizations when building Go code. Useful when you want to interactively debug the created container.
  -h, --help                     help for build
      --image-label strings      Which labels (key=value) to add to the image.
--
Global Flags:
  -v, --verbose   Enable debug logs
$ ko version

0.15.4

I can see this flag is exist at AddBuildOptions() on main branch. But its not on v0.15.4 tag.

Do you have any plan to cut a new release soon?

Thanks!

Ref: https://github.com/ko-build/ko/issues/78

github-actions[bot] commented 3 weeks ago

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.

josephmcasey commented 3 weeks ago

This issue has been resolved as of version 17.1

ko-options