Skip to content

Commit 343e914

Browse files
authored
fix(supply-chain): continue after file-local lockfile limitations
Keep collecting independent project lockfiles after Pipenv parse errors, unsupported sources and file-local limits. Stop only for the aggregate file, runtime or package budget. Signed-off-by: YMuskrat <101849520+YMuskrat@users.noreply.github.com>
1 parent d4e5c1c commit 343e914

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/skillspector/nodes/analyzers/static_patterns_supply_chain.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,8 @@ def _collect_locked_versions_detailed(
18681868
limitations.extend((path, limitation) for limitation in parse_limitations)
18691869
else:
18701870
packages = _extract_packages_from_toml_lock(content, limit=remaining + 1)
1871-
if len(packages) > remaining:
1871+
package_limit_exceeded = len(packages) > remaining
1872+
if package_limit_exceeded:
18721873
limitations.append(
18731874
(
18741875
path,
@@ -1897,7 +1898,8 @@ def _collect_locked_versions_detailed(
18971898
ambiguous_versions.add(key)
18981899
else:
18991900
project_versions[normalized_name] = version
1900-
if limitations:
1901+
# File-local parse gaps must not prevent resolution in other projects.
1902+
if package_limit_exceeded:
19011903
break
19021904
return locked_versions, limitations
19031905

0 commit comments

Comments
 (0)