Skip to content

fix(renovate): allow npm to fetch the root git pins when updating lockfiles - #225

Merged
mrsimpson merged 1 commit into
mainfrom
fix/renovate-allow-git
Oct 31, 2026
Merged

mrsimpson merged 1 commit into
mainfrom
fix/renovate-allow-git

Conversation

@mrsimpson

Copy link
Copy Markdown
Contributor

Intent

Renovate PRs in the lernapps repos no longer merge. As of npm 12, allow-git defaults to none. Renovate runs the latest npm, which refuses every git dependency (EALLOWGIT). Renovate therefore cannot update a package-lock.json that holds a github: pin of @lernapps/site, @lernapps/tooling or @lernapps/app-templates. It changes package.json only, and renovate/artifacts fails.

Examples: docs #78 (yaml), tooling #218, practice #23, app-templates #67. Digest PRs such as tooling #208 and #224 were merged without the lockfile, so the lockfile of tooling lags behind package.json.

Key changes

  • The shared preset hands Renovate's npm the setting allow-git=root. npm then fetches the git dependencies of the root package.json, but none of a dependency.
  • npmrcMerge keeps the repo's own .npmrc, such as install-links=true of the templates in app-templates.

Verification

  • Locally with npm 12.2.1, using the command Renovate runs (npm install --package-lock-only --no-audit --ignore-scripts) on the package.json of the PRs above: EALLOWGIT without the setting, an updated lockfile with allow-git=root.
  • renovate-config-validator --strict default.json, vp check and test/renovate.test.ts pass.
  • After the merge: retry docs chore(deps): pin app-templates e54c743 #78 and check that renovate/artifacts turns green.

Generated by Claude Code

…kfiles

## Intent

Renovate PRs in every lernapps repo stopped merging. As of npm 12, the
setting allow-git defaults to none, and Renovate runs the latest npm. npm
then refuses every git dependency (EALLOWGIT), so Renovate cannot update a
package-lock.json that holds a github: pin of @lernapps/site,
@lernapps/tooling or @lernapps/app-templates. The PR changes package.json
only, npm ci fails in CI, and auto-merge waits for green checks forever.

## Key changes

- The shared preset hands Renovate's npm the setting allow-git=root: npm
  fetches the git dependencies of the root package.json, but none of a
  dependency.
- npmrcMerge keeps the repo's own .npmrc next to it, such as
  install-links=true of the templates in app-templates.

## Dependencies and side effects

Applies to every repo that extends this preset, from its next Renovate run.
PRs that already failed need a retry (checkbox in the PR or the Dependency
Dashboard). CI and local installs with npm 10 are not affected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016NmpwakoV66enni95z2wAh
@github-actions

Copy link
Copy Markdown
Contributor

Tooling review

Open the preview — as it would be published

Architecture (arc42)

No changes compared with origin/main.

The preview is ready once the GitHub Pages deployment of gh-pages has finished.

@mrsimpson
mrsimpson merged commit 4040b08 into main Oct 31, 2026
18 checks passed
@mrsimpson
mrsimpson deleted the fix/renovate-allow-git branch October 31, 2026 16:23
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.

2 participants