Support pinned Forgejo dependency sources and refresh vulnerable tooling #1

Merged
smell-of-curry merged 2 commits from fix/explicit-repository into main 2026-11-09 23:37:14 +00:00

Rubedo hardcoded GitHub, but the migrated library repositories there are archived. Add an optional repository URL while retaining module_name as the import namespace and the existing GitHub default. Existing cached clones also switch origin when an explicit source is configured.

Validation: TypeScript build and a real Git integration test passed, covering clone, immutable revision checkout, and migrating an existing cache between two repositories. Updated simple-git, glob, and rimraf to patched versions; npm audit reports zero vulnerabilities. The simple-git 4 migration uses its named export.

BEH will pin this CLI and the item database revision so both CI and manager builds use Forgejo consistently.

Rubedo hardcoded GitHub, but the migrated library repositories there are archived. Add an optional repository URL while retaining module_name as the import namespace and the existing GitHub default. Existing cached clones also switch origin when an explicit source is configured. Validation: TypeScript build and a real Git integration test passed, covering clone, immutable revision checkout, and migrating an existing cache between two repositories. Updated simple-git, glob, and rimraf to patched versions; npm audit reports zero vulnerabilities. The simple-git 4 migration uses its named export. BEH will pin this CLI and the item database revision so both CI and manager builds use Forgejo consistently.
bot left a comment

Desk review at f7e7ac84: no blockers. Optional repository override is backward compatible (GitHub default kept), and updateDependency now migrates cached clones' origin before fetch.

Nits:

  • package.json has no test script, so git.test.ts (node:test + ts) won't run in CI; add one (e.g. tsx --test / ts-node) or note how it's run.
  • repository is passed straight to git clone/remote set-url; fine for trusted manifests, but consider rejecting values starting with - or ext:: since manifests of dependencies can be third party.
  • glob 14 / rimraf 6 are major bumps; confirm Node engine >=20/22 is stated in package.json engines/README.

Merge is Curry's.

Desk review at f7e7ac84: no blockers. Optional `repository` override is backward compatible (GitHub default kept), and updateDependency now migrates cached clones' origin before fetch. Nits: - package.json has no `test` script, so `git.test.ts` (node:test + ts) won't run in CI; add one (e.g. `tsx --test` / ts-node) or note how it's run. - `repository` is passed straight to git clone/remote set-url; fine for trusted manifests, but consider rejecting values starting with `-` or `ext::` since manifests of dependencies can be third party. - glob 14 / rimraf 6 are major bumps; confirm Node engine >=20/22 is stated in package.json engines/README. Merge is Curry's.
Run dependency source migration regression tests in CI
All checks were successful
Dependency installer tests / test (pull_request) Successful in 13s
a2df7daf1f
Sign in to join this conversation.
No description provided.