Skip to content

Conversation

@sherlockGH-coder
Copy link

@sherlockGH-coder sherlockGH-coder commented Jan 29, 2026

Problem

Running make prepare fails with a TOML parse error:

error: Failed to parse: pyproject.toml
Caused by: TOML parse error at line 52, column 15
|
52 | module-name = ["kimi_cli"]
| ^^^^^^^^^^^^
invalid type: sequence, expected a string

The uv build backend expects module-name to be a string, not a sequence.
This error was present in all workspace packages.

Related Issue

N/A - This is a straightforward configuration bug fix discovered during setup.

Description

Changed module-name in [tool.uv.build-backend] section from array format to string format across all workspace packages.

Changes:

  • pyproject.toml: module-name = ["kimi_cli"]module-name = "kimi_cli"
  • packages/kaos/pyproject.toml: module-name = ["kaos"]module-name = "kaos"
  • packages/kimi-code/pyproject.toml: module-name = ["kimi_code"]module-name = "kimi_code"
  • packages/kosong/pyproject.toml: module-name = ["kosong"]module-name = "kosong"
  • sdks/kimi-sdk/pyproject.toml: module-name = ["kimi_sdk"]module-name = "kimi_sdk"

Testing

After this fix, make prepare completes successfully without TOML parse errors.

$ make prepare
==> Ensuring ripgrep is installed
...
==> Syncing dependencies for all workspace packages
✓ Successfully synced dependencies

Checklist

- I have read the https://github.com/MoonshotAI/kimi-cli/blob/main/CONTRIBUTING.md document.
- I have linked the related issue, if any. (N/A - direct bug fix)
- I have added tests that prove my fix is effective or that my feature works. (N/A - configuration fix, verified by running make prepare)
- I have run make gen-changelog to update the changelog. (Will defer to maintainers)
- I have run make gen-docs to update the user documentation. (N/A - internal configuration fix)
<!-- devin-review-badge-begin -->

---

<a href="https://app.devin.ai/review/moonshotai/kimi-cli/pull/774">
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
  <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->

  Change module-name from array to string in [tool.uv.build-backend]
  section to fix TOML parse error during `make prepare`.

  The uv build backend expects module-name to be a string, not a sequence.
  This was causing the error: "invalid type: sequence, expected a string"
Copilot AI review requested due to automatic review settings January 29, 2026 05:52
Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a TOML parse error that prevented make prepare from running successfully. The uv build backend was incorrectly configured with module-name as an array instead of a string across all workspace packages.

Changes:

  • Corrected module-name configuration format from array to string in all pyproject.toml files
  • Applied fix consistently across root project and all 4 workspace packages

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pyproject.toml Changed module-name from array ["kimi_cli"] to string "kimi_cli"
packages/kaos/pyproject.toml Changed module-name from array ["kaos"] to string "kaos"
packages/kimi-code/pyproject.toml Changed module-name from array ["kimi_code"] to string "kimi_code"
packages/kosong/pyproject.toml Changed module-name from array ["kosong"] to string "kosong"
sdks/kimi-sdk/pyproject.toml Changed module-name from array ["kimi_sdk"] to string "kimi_sdk"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant