Vendor 依赖升级与工具同步
vendor-update
升级 Go/Node.js 的 vendor 依赖项并同步工具版本。每当用户说"升级依赖"、"更新 vendor"、"vendor 更新"、"运行 vendor-upgrade"、"更新依赖版本"、"更新包",或要求运行 `vendor-update` Make 目标时使用。此技能还会在升级后检查 `scripts/build/version.mk`,查看是否有受跟踪的工具版本也需要更新,并在版本变化时从 `bin/` 中移除过时的二进制文件。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 355
- Forks
- 130
01 前言 Front Matter
- name
- vendor-update
- description
- Upgrade Go/Node.js vendor dependencies and sync tool versions. Use whenever the user says "upgrade dependencies", "update vendors", "vendor update", "run vendor-upgrade", "bump dependencies", "update packages", or asks to run the `vendor-update` Make target. This skill also checks `scripts/build/version.mk` after upgrading to see if any tracked tool versions need updating too, and removes stale binaries from `bin/` when versions change.
- compatibility
- go, make
03 SKILL.md 正文
Upgrade vendor dependencies
Run the vendor-update Make target across all projects:
make vendor-update
This runs go get -u ./... and go mod tidy -compat=1.26 in each project directory (ui, banyand, bydbctl, mcp, fodc/agent, fodc/proxy, pkg, test).
Update license dependencies
After the vendor upgrade completes, run make license-dep to update any license-related files that may have changed due to new or updated dependencies:
make license-dep
This ensures license headers and dependency license files stay in sync with the upgraded vendors.
Check for tool version drift
After upgrading, compare go.mod dependency versions against scripts/build/version.mk to find any tools whose library version was bumped and may need their tool version updated.
Version mapping
Read scripts/build/version.mk and go.mod in parallel. For each tool version variable, check if the corresponding library in go.mod was upgraded:
| version.mk variable | Binary | go.mod package |
|---|---|---|
BUF_VERSION |
bin/buf |
github.com/bufbuild/buf (if present) |
PROTOC_GEN_GO_VERSION |
bin/protoc-gen-go |
google.golang.org/protobuf |
PROTOC_GEN_GO_GRPC_VERSION |
bin/protoc-gen-go-grpc |
google.golang.org/grpc |
PROTOC_GEN_DOC_VERSION |
bin/protoc-gen-doc |
github.com/pseudomuto/protoc-gen-doc (if present) |
GRPC_GATEWAY_VERSION |
bin/protoc-gen-grpc-gateway |
github.com/grpc-ecosystem/grpc-gateway/v2 |
PROTOC_GEN_VALIDATE_VERSION |
bin/protoc-gen-validate |
github.com/envoyproxy/protoc-gen-validate |
GOLANGCI_LINT_VERSION |
bin/golangci-lint |
(no go.mod entry — only in version.mk) |
REVIVE_VERSION |
bin/revive |
(no go.mod entry — only in version.mk) |
LICENSE_EYE_VERSION |
bin/license-eye |
(no go.mod entry — only in version.mk) |
MOCKGEN_VERSION |
bin/mockgen |
go.uber.org/mock |
GINKGO_VERSION |
bin/ginkgo |
github.com/onsi/ginkgo/v2 |
GOVULNCHECK_VERSION |
bin/govulncheck |
golang.org/x/vuln |
BPF2GO_VERSION |
(used in bpf2go.mk) | github.com/cilium/ebpf |
Only update version.mk if the library version in go.mod has changed and the tool version should follow. Many tools (golangci-lint, revive, license-eye) are not in go.mod — their versions only change when explicitly updated in version.mk, not from make vendor-update.
Update version.mk if needed
If a tool version should be bumped (library changed and tool version needs to match), update scripts/build/version.mk using the Edit tool. Keep the format exactly — e.g., PROTOC_GEN_GO_VERSION := v1.36.11.
Remove stale binaries
When version.mk is updated, remove the corresponding old binary from bin/:
rm bin/<binary-name>
This ensures the next build/install of that tool fetches the correct new version.
04 同仓库更多 Skills
GitHub 拉取请求创建
gh-pull-request
为 SkyWalking BanyanDB 创建 GitHub 拉取请求(Pull Request)。当用户要求创建 PR、提交更改或发起拉取请求时使用。
GitHub Issue 审查与拆分
gh-issue
对 BanyanDB 的 Issue 进行规模审查、撰写和拆分,使他人或自动化 TDD 工作流能够实施。当用户要求提交或修改 Issue、判断某个 Issue 是否过大、使 Issue 达到 TDD 可执行状态、将设计转化为工单,或将总览性工单拆分为可执行的末级任务时使用。在将实现类 Issue 归类为可合并的末级任务或跟踪性父工单之前,不要起草或提交该 Issue。
BanyanDB 项目编译构建
compiling
编译并构建 SkyWalking BanyanDB 项目。当用户要求为该项目编译、构建或生成代码时使用。
BanyanDB BydbQL 查询生成
bydbql
针对 STREAM、MEASURE、TRACE 和 PROPERTY 资源,生成、验证并可选地执行只读的 BanyanDB BydbQL 查询。当用户要求查询 BanyanDB、将自然语言转换为 BydbQL、检查 BanyanDB 的架构或数据、验证 BydbQL,或获取原始 BanyanDB 记录时使用。