Repository navigation
Conversation
…ck.json On the first run, scripts/markdownlint installed markdownlint-cli with `npm install --save-dev`, which added it to package.json. It then checked for `package-json.lock` instead of `package-lock.json`, so it always deleted the tracked package-lock.json. Install markdownlint-cli with `npm install --no-save` instead, which leaves both files unchanged, and remove the lock file handling. Close pingcap#24446 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
What is changed, added, or deleted? (Required)
When
markdownlintis not installed globally, the first run of./scripts/markdownlintinstallsmarkdownlint-cli. Before this PR, this step had the following side effects:npm install --save-devadded"markdownlint-cli": "^0.17.0"topackage.json.package-json.lockinstead ofpackage-lock.json, so it always deleted the trackedpackage-lock.json.This PR installs
markdownlint-cliwithnpm install --no-saveinstead, which leavespackage.jsonandpackage-lock.jsonunchanged, and removes the lock file handling.Tested in a copy of the repository without
node_modules: the first run installsmarkdownlint-cliand lints the files without modifyingpackage.jsonorpackage-lock.json, later runs reuse the installed binary, and lint errors still result in a non-zero exit code.Close #24446
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions.
What is the related PR or file link(s)?
AI agent involvement
Do your changes match any of the following descriptions?
🤖 Generated with Claude Code
Summary by CodeRabbit