Skip to content

fix: delete package-lock.json before npm install to prevent stale rule dep resolution#79

Merged
Sandy-at-Tazama merged 1 commit intodevfrom
fix/package-lock-stale-rule-dep
Apr 15, 2026
Merged

fix: delete package-lock.json before npm install to prevent stale rule dep resolution#79
Sandy-at-Tazama merged 1 commit intodevfrom
fix/package-lock-stale-rule-dep

Conversation

@Justus-at-Tazama
Copy link
Copy Markdown
Contributor

When \package.json\ is rewritten by \sed\ to replace the rule dependency alias, the existing \package-lock.json\ still has the old
esolved\ URL in its \packages\ section. npm honours the lock over \package.json\ and installs the wrong tarball (e.g.
ule-901\ instead of
ule-011). Deleting the lock before
pm install\ forces a clean resolution from the registry.

…e dep resolution

Signed-off-by: Justus Ortlepp <jortlepp@contractor.linuxfoundation.org>
@Justus-at-Tazama Justus-at-Tazama requested review from a team as code owners April 15, 2026 11:06
@github-actions github-actions Bot added the bug Something isn't working label Apr 15, 2026
@Sandy-at-Tazama Sandy-at-Tazama merged commit 96907aa into dev Apr 15, 2026
3 checks passed
@Sandy-at-Tazama Sandy-at-Tazama deleted the fix/package-lock-stale-rule-dep branch April 15, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants