Skip to main content

compiling

Compile and build the SkyWalking BanyanDB project. Use when the user asks to compile, build, or generate code for this project.

来源信息

仓库
apache/skywalking-banyandb
最近来源活动
2026年4月1日 00:18
检测到的 SKILL.md 语言
英语
星标
355
分支
123

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
compiling
description
Compile and build the SkyWalking BanyanDB project. Use when the user asks to compile, build, or generate code for this project.
allowed-tools
Bash, Read, Grep, Glob
# Compiling SkyWalking BanyanDB Follow these steps to compile the project. ## Step 1: Generate protobuf and mock code Run `make generate` first. This regenerates `.pb.go` files from `.proto` definitions and mock files via mockgen. This step is **required** whenever: - Proto files (`.proto`) have been added or modified - Go interfaces used by mockgen have changed If generate fails, check: - `protoc` and Go protobuf plugins are installed - Proto file syntax is valid - Interface signatures match mock expectations ## Step 2: Build all binaries Run `make build` to compile all project components: ui, banyand, bydbctl, mcp, fodc/agent, fodc/proxy. Binaries are output to each component's `build/bin/dev/` directory. ## Troubleshooting - **Missing fields in .pb.go**: Proto files were updated but `make generate` was not run. Run it first. - **Mock generation failures**: An interface changed but the mock wasn't regenerated. `make generate` fixes this. - **Import errors**: Check import aliases match CLAUDE.md conventions (e.g., `commonv1`, `databasev1`). ## Other useful targets - `make clean` — clean all build artifacts - `make clean-build` — clean only build binaries - `make lint` — run linters - `make test` — run tests
在 GitHub 查看