关于 bazel
为仓库提供 Bazel 使用指南,用于构建和测试 Checkmk 目标。现有内容说明版本选项,以及 mypy 类型检查和 Rust lint 的配置。
主要功能
- 01设置 Checkmk 版本参数
- 02配置 mypy 类型检查
- 03配置 Rust clippy lint
适用场景
- 01为 Bazel 目标选择版本
- 02通过 Bazel 配置运行 mypy
- 03通过 Bazel 配置执行 Rust lint
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ checkmk/ checkmk --skill bazel安装后在 Claude Code 中输入/bazel确认已加载。
README 原文English
来自项目 READMEREADME 暂无中文译文,以下为英文原文;中文介绍见上方。
Repo-specific flags
# Edition (affects which cmk targets are built/tested)
--cmk_edition=community|pro|ultimate|ultimatemt|cloud
# Configs defined in .bazelrc
--config=mypy # type checking
--config=clippy # Rust linting
# CI excludes these to avoid xunit parser issues (fine to include locally)
-//packages/livestatus/... -//packages/neb/... -//packages/unixcat/...
评论
支持 Markdown