command
Version:
v2.1.0
Opens a new window with list of versions in this module.
Published: Oct 25, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
agentrev 打印当前源码树的「Agent 侧代码指纹」(见 internal/agentrev)。
构建脚本、Dockerfile 与发布流水线用它给 Agent 注入 -X main.rev,并写入分发目录的 REV 文件:
REV=$(go run ./cmd/agentrev)
go build -ldflags "-X main.version=… -X main.rev=${REV}" ./cmd/relaymesh-agent
默认以当前目录为模块根;-C 指定其他目录。只输出指纹本身(一行),出错时以非零状态退出。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.