Automic VaultAutomic Vault

brew

使用 Homebrew, apk, MacPorts, Nix, pacman, scoop 安装 ko

查看 ko 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ko

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ko

MacPorts ports tree · devel/ko/Portfile · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/ko

Scoop official bucket manifest trees · bucket/ko.json · 来源: api.github.com

概览

软件包摘要

Build and deploy Go applications on Kubernetes

历史

项目历史与用法

ko is a Go-focused container image builder for developers who want OCI images without writing Dockerfiles or running Docker locally. Its Homebrew package is a small CLI, but it sits at the intersection of Go modules, Kubernetes manifests, registries, SBOMs, and supply-chain tooling.

项目历史

The project grew out of Google experience building Docker and Kubernetes support for Bazel. Its README describes ko as a simple, fast container image builder that effectively runs `go build` locally, then packages the resulting binary into an image without requiring Docker.

By 2022, the project had moved into the ko-build GitHub organization and the ko.build documentation domain. A 2022-08-19 migration issue laid out the repository move from google/ko to github.com/ko-build, the ko.build vanity import path, image-name changes, and a Slack channel rename. On 2022-10-11, Google announced that it had submitted ko for CNCF Sandbox consideration.

采用历史

ko's adoption followed the rise of Go-based cloud-native services that can ship as mostly static binaries. The Google Open Source announcement described growing use by open source and enterprise teams and integration into third-party CI/CD tools.

Package-manager adoption is useful because ko is often installed in developer shells, GitHub Actions, release jobs, and Kubernetes workflows. Its companion setup-ko action made it easy to bootstrap the CLI in CI, while Homebrew, MacPorts, Nix, Arch, Alpine, and Scoop packaging made it available outside a single vendor ecosystem.

使用方式

The common workflow is `ko build` or `ko resolve`: build Go packages into images, push them to a registry, and optionally rewrite Kubernetes YAML with the produced image references. The docs emphasize no Docker daemon requirement, multi-platform images, SBOM generation, Kubernetes integration, build cache support, and registry authentication through ko login or surrounding CI credentials.

It is particularly attractive for Go services with few operating-system package dependencies. That constraint is part of the tool's appeal: it turns the boring case of a static Go binary into a very short path from source to signed or traceable container artifact.

为什么软件包爱好者会关心

ko is the package-index shorthand for a whole cloud-native philosophy: build the thing the language already knows how to build, then wrap it as an OCI image with minimal ceremony. It competes less with Docker itself than with Dockerfile boilerplate, bespoke CI shell scripts, and build-system plugins.

For maintainers, it is also a clean example of a single-purpose CLI whose value comes from integration points: Go, registries, Kubernetes, SBOMs, GitHub Actions, and module import paths.

时间线

  • 2022-02-17: ko v0.10.0 was published; ko docs note that before v0.10 the command was called `ko publish`.
  • 2022-08-19: The project opened a migration issue for moving from google/ko to github.com/ko-build and ko.build.
  • 2022-08-24: ko v0.12.0 was published during the repository/domain migration period.
  • 2022-10-11: Google announced that ko had been submitted for CNCF Sandbox consideration.

Related projects

  • ko is related to go-containerregistry, setup-ko, Skaffold's ko builder integration, Docker/BuildKit workflows, Kubernetes deployment tooling, and Bazel container rules that influenced the original design.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:kubernetes

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
.ko.yaml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
kocli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.19.1
管理器更新时间2026-06-29
本地数据OK
上游当前
检测到的最新版本v0.19.1

https://github.com/ko-build/ko

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:ko
版本0.19.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ko
主页https://ko.build
仓库https://github.com/ko-build/ko
上游文档https://ko.build/
许可证Apache-2.0
源码归档https://github.com/ko-build/ko/archive/refs/tags/v0.19.1.tar.gz
最后更新2026-06-29T16:04:29Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameko
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

ko

nix profile install nixpkgs#ko
  • normalized package name match
  • 匹配方式:Ko
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ko/ko/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

ko 0.17.1-r15

Build containers from Go projects

https://ko.build/

sudo apk add ko
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: ko
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ko
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ko from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

ko-bash-completion 0.17.1-r15

Bash completions for ko

https://ko.build/

sudo apk add ko-bash-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: ko
  • normalized package name match
  • 匹配方式:Ko
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ko-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

ko-fish-completion 0.17.1-r15

Fish completions for ko

https://ko.build/

sudo apk add ko-fish-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: ko
  • normalized package name match
  • 匹配方式:Ko
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ko-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

ko-zsh-completion 0.17.1-r15

Zsh completions for ko

https://ko.build/

sudo apk add ko-zsh-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: ko
  • normalized package name match
  • 匹配方式:Ko
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ko-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
pacman95%

ko 0.18.1-2

Build and deploy Go container images

https://github.com/ko-build/ko

sudo pacman -S ko
  • License: Apache-2.0
  • Architecture: x86_64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Ko
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: ko from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

ko

sudo port install ko
  • normalized package name match
  • 匹配方式:Ko
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/ko/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/ko

scoop install main/ko
  • normalized package name match
  • 匹配方式:Ko
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/ko.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

Combined YAML source

View the package source record on GitHub.

combined/ko.yml

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment