Skip to content

Commit f8984e2

Browse files
committed
CM-59977 internal cr fixes
1 parent b898d35 commit f8984e2

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

cycode/cli/files_collector/sca/base_restore_dependencies.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ def execute_commands(
3434
if not commands:
3535
return None
3636

37-
if not commands:
38-
return None
3937
try:
4038
outputs = []
4139

cycode/cli/files_collector/sca/npm/restore_npm_dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
NPM_MANIFEST_FILE_NAME = 'package.json'
1212
NPM_LOCK_FILE_NAME = 'package-lock.json'
1313
# These lockfiles indicate another package manager owns the project — NPM should not run
14-
_ALTERNATIVE_LOCK_FILES = ('yarn.lock', 'pnpm-lock.yaml')
14+
_ALTERNATIVE_LOCK_FILES = ('yarn.lock', 'pnpm-lock.yaml', 'deno.lock')
1515

1616

1717
class RestoreNpmDependencies(BaseRestoreDependencies):

cycode/cli/files_collector/sca/sca_file_collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _get_restore_handlers(ctx: typer.Context, is_git_diff: bool) -> list[BaseRes
152152
RestoreYarnDependencies(ctx, is_git_diff, build_dep_tree_timeout),
153153
RestorePnpmDependencies(ctx, is_git_diff, build_dep_tree_timeout),
154154
RestoreDenoDependencies(ctx, is_git_diff, build_dep_tree_timeout),
155-
RestoreNpmDependencies(ctx, is_git_diff, build_dep_tree_timeout), # Must be after Yarn & Pnpm for fallack
155+
RestoreNpmDependencies(ctx, is_git_diff, build_dep_tree_timeout), # Must be after Yarn & Pnpm for fallback
156156
RestoreRubyDependencies(ctx, is_git_diff, build_dep_tree_timeout),
157157
RestorePoetryDependencies(ctx, is_git_diff, build_dep_tree_timeout),
158158
RestorePipenvDependencies(ctx, is_git_diff, build_dep_tree_timeout),

0 commit comments

Comments
 (0)