Chezmoi 禁止接受 LLM 生成的贡献。
Chezmoi introduces ban on LLM-generated contributions

原始链接: https://www.chezmoi.io/developer-guide/

## Chezmoi 设置总结 Chezmoi 是一个基于 Go 的点文件管理工具,在 GitHub 上开发([https://github.com/twpayne/chezmoi.git](https://github.com/twpayne/chezmoi.git))。构建和运行它需要 Go 1.24 或更高版本。 **开始使用:** 1. **克隆仓库:** `git clone https://github.com/twpayne/chezmoi.git` 2. **进入目录:** `cd chezmoi` 3. **构建:** `make` 4. **测试:** `make test` (需要各种工具,如 `age`、`git`、`python3` 等 – 如果未找到,测试将被跳过)。 可以使用 `make smoke-test` 运行全面的冒烟测试套件。使用 Fish shell 的用户在测试期间可能会遇到警告;可以通过使用 `SHELL=bash` 或 `SHELL=zsh` 运行测试来避免这些警告。 **重要提示:** 严禁使用大型语言模型(如 ChatGPT)生成的贡献,违者将被禁止。详情请参阅 `CODE_OF_CONDUCT.md`。

## Chezmoi 禁止 LLM 生成的贡献 Chezmoi 项目已实施严格的禁令,禁止所有由大型语言模型 (LLM) 生成的贡献,包括使用 Copilot 等工具完成的代码。该政策规定,任何 LLM 生成的内容都将导致贡献者立即被禁止,且没有申诉渠道。 这一决定源于对用户利用 LLM 提交的低质量、无帮助贡献的沮丧。维护者引用了一个特别糟糕的 LLM 生成的播客作为催化剂,反映了对“垃圾”代码涌入的更广泛担忧。 此举引发了争论,一些人认为这是对有用工具的不可执行且过于严厉的反应。另一些人则支持这一决定,认为它可以保护项目免于浪费时间和提交低质量的内容。人们对准确检测 LLM 生成的内容以及潜在的误报表示担忧。 该政策代表了对依赖 LLM 进行贡献的坚定立场,优先考虑人工编写、经过充分理解的代码。这是一种有争议的方法,但维护者似乎决心执行它。
相关文章

原文

Warning

If you use an LLM (Large Language Model, like ChatGPT, Claude, Gemini, GitHub Copilot, or Llama) to make any kind of contribution then you will immediately be banned without recourse. See CODE_OF_CONDUCT.md for more information.

chezmoi is written in Go and development happens on GitHub. chezmoi is a standard Go project, using standard Go tooling. chezmoi requires Go 1.24 or later.

Checkout chezmoi:

git clone https://github.com/twpayne/chezmoi.git
cd chezmoi

Build chezmoi:

Run all tests:

chezmoi's tests include integration tests with other software. If the other software is not found in $PATH the tests will be skipped. Running the full set of tests requires age, base64, bash, bzip2, git, gpg, gzip, perl, python3, rage, ruby, sed, sha256sum, tr, true, unzip, xz, zip, and zstd.

Run chezmoi:

Run a set of smoke tests, including cross-compilation, tests, and linting:

Test building chezmoi for all architectures:

Hint

If you use fish as your primary shell, you may get warnings from Fish during tests:

error: can not save history
warning-path: Unable to locate data directory derived from $HOME: '/home/user/.local/share/fish'.
warning-path: The error was 'Operation not supported'.
warning-path: Please set $HOME to a directory where you have write access.

These can be avoided with by running tests with SHELL=bash or SHELL=zsh:

SHELL=bash make test
SHELL=zsh make smoke-test
SHELL=bash go test ./...
联系我们 contact @ memedata.com