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.

Datos de origen

Repositorio
apache/skywalking-banyandb
Última actividad en el origen
1 de abril de 2026 a las 00:18
Idioma detectado de SKILL.md
inglés
Estrellas
354
Forks
124

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
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
Ver en GitHub