pkg.soopen package index

brew / 排名 1367

使用 Homebrew, apk, apt, Nix, zypper, dnf 安装 protoc-gen-go

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install protoc-gen-go

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add protoc-gen-go

Alpine Linux edge package indexes · protoc-gen-go · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install protoc-gen-go

Debian stable package indexes · protoc-gen-go · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#protoc-gen-go

nixpkgs package indexes · pkgs/by-name/pr/protoc-gen-go/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install protoc-gen-go

openSUSE Tumbleweed package metadata · protoc-gen-go · 来源: download.opensuse.org

Fedora dnf已验证 · 92%
sudo dnf install golang-google-protobuf

Fedora Rawhide package metadata · golang-google-protobuf · 来源: dl.fedoraproject.org

概览

软件包摘要

Go support for Google's protocol buffers

命令和别名

  • protoc-gen-go

历史

项目历史与用法

protoc-gen-go is the official Protocol Buffers compiler plugin for generating Go message types and supporting code from .proto schemas. It belongs to the google.golang.org/protobuf implementation and is distinct from the gRPC-specific Go generator.

项目历史

Go's first Protocol Buffer bindings were announced in March 2010 and included both a protoc code-generation plugin and a Go runtime package.

On 2 March 2020, the Go team released google.golang.org/protobuf as APIv2, a major overhaul adding first-class protobuf reflection, dynamic messages, improved testing support, and a cleaned-up API surface. protoc-gen-go is the compiler plugin within that module.

On 16 December 2024, the Go team announced the Opaque generated-code API. The established Open Struct API remained supported, allowing users to migrate without an abrupt removal of existing generated-code behavior.

采用历史

The Go protobuf bindings grew alongside Go from their initial pre-Go-1 form into a widely used serialization foundation. The 2020 APIv2 module allowed gradual adoption by making the older APIv1 module interoperate with the new implementation.

The generator is packaged across Homebrew and multiple Linux-oriented package managers in source_facts.package-manager, while upstream recommends installation with go install. It is routinely used by Go projects that exchange protobuf messages or combine message generation with gRPC service generation.

使用方式

Install the plugin with go install, ensure it is on PATH, and invoke protoc with --go_out plus any --go_opt values. Each generated Go package needs an import path, usually supplied through the .proto file's go_package option; output placement can be import-path-based or source-relative. The tool uses command-line options and schema declarations rather than a documented persistent config or credentials file.

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

protoc-gen-go sits at the boundary between a language-neutral schema compiler and Go's module ecosystem. Generator version, runtime-library version, import-path mapping, and generated-code API selection can materially affect reproducibility and compatibility.

The 2020 APIv2 migration and the later Opaque API illustrate how a mature code generator can evolve representation and reflection behavior while retaining compatibility paths for existing generated code.

时间线

  • 2010: The first Go Protocol Buffer bindings and compiler plugin were announced.
  • 2020: google.golang.org/protobuf APIv2 was released with a redesigned runtime and generator ecosystem.
  • 2024: The Opaque generated-code API was announced while the Open Struct API remained supported.

Related projects

  • protoc is the Protocol Buffers compiler that discovers and invokes protoc-gen-go.
  • google.golang.org/protobuf is the generator's accompanying Go runtime and reflection module.
  • protoc-gen-go-grpc separately generates gRPC client and server bindings from service declarations.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
protoc-gen-gocli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-09-19
管理器版本1.36.12
管理器更新时间2026-09-13
本地数据OK
上游当前
检测到的最新版本v1.36.12

https://github.com/protocolbuffers/protobuf-go

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

安装元数据

软件包元数据

软件包键brew:protoc-gen-go
版本1.36.12
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/protoc-gen-go
主页https://github.com/protocolbuffers/protobuf-go
仓库https://github.com/protocolbuffers/protobuf-go
许可证BSD-3-Clause
源码归档https://github.com/protocolbuffers/protobuf-go/archive/refs/tags/v1.36.12.tar.gz
最后更新2026-09-13T09:40:44+02:00
Pulseupdated
依赖protobuf
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

protoc-gen-go 1.36.5-1

Go plugin for protobuf compiler (APIv2)

https://github.com/protocolbuffers/protobuf-go

sudo apt install protoc-gen-go
  • Section: devel
  • Architecture: amd64
  • Source Package: golang-google-protobuf
  • 2 依赖
  • normalized package name match
  • 匹配方式:Protoc Gen Go
Debian stable package indexes · deb.debian.org · Debian stable package indexes: protoc-gen-go from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

protoc-gen-go

nix profile install nixpkgs#protoc-gen-go
  • normalized package name match
  • 匹配方式:Protoc Gen Go
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/pr/protoc-gen-go/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

protoc-gen-go 1.32.0-1

Go plugin for protobuf compiler (APIv2)

https://github.com/protocolbuffers/protobuf-go

sudo apt install protoc-gen-go
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: golang-google-protobuf
  • 2 依赖
  • normalized package name match
  • 匹配方式:Protoc Gen Go
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: protoc-gen-go from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

protoc-gen-go 1.36.11-r6

Protocol Buffers Go generator

https://github.com/protocolbuffers/protobuf-go

sudo apk add protoc-gen-go
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: protoc-gen-go
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Protoc Gen Go
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: protoc-gen-go from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

golang-google-protobuf 1.31.0-16.fc45

Go support for Google's protocol buffers

https://github.com/protocolbuffers/protobuf-go

sudo dnf install golang-google-protobuf
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: golang-google-protobuf
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Protoc Gen Go
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: golang-google-protobuf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst
zypper95%

protoc-gen-go 1.34.2-1.9

Go support for Google's protocol buffers

https://github.com/golang/protobuf

sudo zypper install protoc-gen-go
  • License: BSD-3-Clause
  • Category: Development/Languages/Go
  • Architecture: x86_64
  • Source Package: protoc-gen-go
  • 1 提供
  • normalized package name match
  • 匹配方式:Protoc Gen Go
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: protoc-gen-go from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation