Skip to content

RTECO-1362 - Add strict mode for npm build-info dependency resolution - #417

Closed
udaykb2 wants to merge 1 commit into
mainfrom
RTECO-1362-npm-fail-on-missing-deps
Closed

RTECO-1362 - Add strict mode for npm build-info dependency resolution#417
udaykb2 wants to merge 1 commit into
mainfrom
RTECO-1362-npm-fail-on-missing-deps

Conversation

@udaykb2

@udaykb2 udaykb2 commented Aug 30, 2026

Copy link
Copy Markdown

Introduce NpmTreeDepListParam.FailOnMissingDeps: when set, dependencies whose tarball can't be resolved from the npm cache cause CalculateNpmDependenciesList to return an error instead of only logging a warning and silently omitting them from the build-info.

Peer/bundled/optional missing deps are unaffected and remain debug-only, since those are often expected (e.g. platform-specific optional deps).

Add NpmModule.SetFailOnMissingDeps to thread the flag from CLI callers through to CalcDependencies.

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.
  • Appropriate label is added to the PR for auto generate release notes.

@udaykb2
udaykb2 marked this pull request as draft August 30, 2026 09:35
Introduce NpmTreeDepListParam.FailOnMissingDeps: when set, dependencies
whose tarball can't be resolved from the npm cache cause
CalculateNpmDependenciesList to return an error instead of only
logging a warning and silently omitting them from the build-info.

Peer/bundled/optional missing deps are unaffected and remain
debug-only, since those are often expected (e.g. platform-specific
optional deps).

Add NpmModule.SetFailOnMissingDeps to thread the flag from CLI callers
through to CalcDependencies.
@udaykb2
udaykb2 force-pushed the RTECO-1362-npm-fail-on-missing-deps branch from ed82935 to a418385 Compare August 30, 2026 09:43
@udaykb2 udaykb2 closed this Aug 30, 2026
@udaykb2
udaykb2 deleted the RTECO-1362-npm-fail-on-missing-deps branch August 30, 2026 09:48
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.

1 participant