1
0
mirror of https://github.com/ko-build/ko.git synced 2024-11-27 08:21:07 +02:00
ko-build/doc/ko_deps.md
Jason Hall 35a4d2c28e
Warn that watch mode is deprecated (#434)
Also update generated markdown docs, and omit unnecessary autogenerated
bits.
2021-09-13 10:30:28 -07:00

732 B

ko deps

Print Go module dependency information about the ko-built binary in the image

Synopsis

This sub-command finds and extracts the executable binary in the image, assuming it was built by ko, and prints information about the Go module dependencies of that executable, as reported by "go version -m".

If the image was not built using ko, or if it was built without embedding dependency information, this command will fail.

ko deps IMAGE [flags]

Examples


  # Fetch and extract Go dependency information from an image:
  ko deps docker.io/my-user/my-image:v3

Options

  -h, --help   help for deps

SEE ALSO

  • ko - Rapidly iterate with Go, Containers, and Kubernetes.