Skip to content

docs: add guide for dependency and lockfile changes - #374

Merged
ashrafee-dev merged 1 commit into
ashrafee-dev:mainfrom
bh-official:dependency-changes-guide
Oct 25, 2026
Merged

ashrafee-dev merged 1 commit into
ashrafee-dev:mainfrom
bh-official:dependency-changes-guide

Conversation

@bh-official

Copy link
Copy Markdown
Contributor

Closes #103

Outcome

Adds docs/src/content/docs/contributing/dependency-changes.md. It explains that uv.lock and docs/package-lock.json are independent, and shows how to change one package in each without unrelated upgrades. It covers frozen installs, reviewing lockfile diffs, and keeping the Linux CPU PyTorch source. The sidebar is not edited, as the issue asks.

Changes

  • One new docs page. No code, config or lockfile changes.

Verification

Run with uv 0.12.19 (same as CI), npm 11.7.0, Node 22.17.1, on Windows. uv and npm commands from the page were run in scratch copies of pyproject.toml/uv.lock and docs/package*.json:

  • uv lock --check: passed on the repo files; errored ("needs to be updated") after uv add --no-sync --dev pytest-cov changed pyproject.toml only.
  • uv lock --upgrade-package redis: "Updated redis v8.0.1 -> v8.1.0"; the lockfile diff only touched the redis entry. uv add --no-sync --dev and uv remove --no-sync --dev worked; the tool.uv.sources torch block was unchanged.
  • npm update sharp --package-lock-only, npm install sharp@0.35 --package-lock-only, npm install --save-dev <pkg> --package-lock-only and npm uninstall <pkg> --package-lock-only all edited only the manifest/lockfile.
  • npm ci with a package.json that does not match the lockfile fails with "Missing: ... from lock file".
  • Regenerating the npm lockfile with no change (npm install --package-lock-only, npm 11.7.0 and 10.9.9) removed the "libc" entries; the page tells readers to watch for this.
  • npm ci and npm run build in docs/: 14 pages built, including the new page.
  • git diff --check: clean.

Not verified: uv sync --frozen / uv sync --dev --frozen and bash scripts/check.sh were not run (a full sync downloads PyTorch and Whisper); that behavior is from uv sync --help and the CI workflow. Linux and macOS were not tested. The page link check relied on the docs build only.

Review notes

The libc note is from my own observation on Windows; please confirm it matches what you see on Linux. The page is not in the sidebar; maintainers can add it after merge.

Explain that Python (uv.lock) and the docs site (docs/package-lock.json)
have independent lockfiles. Show how to upgrade, add and remove a single
package in each, how frozen installs behave, how to review lockfile diffs,
and how to keep the Linux CPU PyTorch source.

Closes ashrafee-dev#103
@vercel

vercel Bot commented Oct 25, 2026

Copy link
Copy Markdown

@bh-official is attempting to deploy a commit to the ashrafee-dev's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ashrafee-dev
ashrafee-dev merged commit bd8eb30 into ashrafee-dev:main Oct 25, 2026
0 of 2 checks passed
@ashrafee-dev

Copy link
Copy Markdown
Owner

Thanks for your contribution! @bh-official

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.

Document lockfile updates without unrelated upgrades

2 participants