Repository navigation
fix(renovate): allow npm to fetch the root git pins when updating lockfiles - #225
Merged
Merged
Conversation
…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
Contributor
Tooling reviewOpen the preview — as it would be published Architecture (arc42)No changes compared with The preview is ready once the GitHub Pages deployment of |
github-actions Bot
added a commit
that referenced
this pull request
Nov 11, 2026
…29, #30, #31, #32, #33, #34, #35, #36, #37, #38, #39, #40, #41, #42, #43, #44, #45, #46, #47, #48, #49, #50, #51, #52, #53, #54, #55, #56, #57, #58, #59, #60, #61, #62, #63, #64, #65, #66, #67, #68, #69, #70, #71, #72, #73, #74, #75, #76, #77, #78, #79, #80, #81, #82, #87, #88, #90, #91, #92, #93, #94, #95, #96, #97, #98, #99, #100, #101, #102, #103, #104, #105, #106, #108, #109, #110, #112, #113, #114, #116, #118, #119, #120, #123, #125, #126, #127, #128, #129, #130, #131, #132, #133, #134, #135, #136, #137, #143, #144, #149, #150, #152, #153, #154, #155, #157, #158, #159, #162, #164, #165, #167, #168, #169, #170, #171, #172, #173, #174, #175, #176, #177, #178, #179, #180, #181, #182, #183, #184, #185, #186, #187, #188, #189, #191, #192, #193, #195, #196, #197, #198, #199, #200, #201, #202, #203, #204, #205, #206, #207, #208, #209, #210, #211, #212, #213, #214, #216, #217, #219, #220, #221, #222, #223, #224, #225, #226, #227, #228, #229, #230, #231, #232, #233, #234, #235, #236, #237, #238, #240, #242, #243, #244, #245, #246, #247, #248, #249, #250, #252, #253, #255, #256, #258, #259, #260, #261, #262, #263, #264, #265, #266, #267, #268, #269, #270, #271, #272, #273, #274, #276
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Renovate PRs in the lernapps repos no longer merge. As of npm 12,
allow-gitdefaults tonone. Renovate runs the latest npm, which refuses every git dependency (EALLOWGIT). Renovate therefore cannot update apackage-lock.jsonthat holds agithub:pin of@lernapps/site,@lernapps/toolingor@lernapps/app-templates. It changespackage.jsononly, andrenovate/artifactsfails.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 behindpackage.json.Key changes
allow-git=root. npm then fetches the git dependencies of the rootpackage.json, but none of a dependency.npmrcMergekeeps the repo's own.npmrc, such asinstall-links=trueof the templates in app-templates.Verification
npm install --package-lock-only --no-audit --ignore-scripts) on the package.json of the PRs above:EALLOWGITwithout the setting, an updated lockfile withallow-git=root.renovate-config-validator --strict default.json,vp checkandtest/renovate.test.tspass.renovate/artifactsturns green.Generated by Claude Code