|
| 1 | +import os |
1 | 2 | from typing import TYPE_CHECKING, Optional
|
2 | 3 |
|
3 | 4 | import typer
|
@@ -122,14 +123,15 @@ def _try_restore_dependencies(
|
122 | 123 |
|
123 | 124 |
|
124 | 125 | def _get_restore_handlers(ctx: typer.Context, is_git_diff: bool) -> list[BaseRestoreDependencies]:
|
| 126 | + build_dep_tree_timeout = int(os.getenv('CYCODE_BUILD_DEP_TREE_TIMEOUT_SECONDS', BUILD_DEP_TREE_TIMEOUT)) |
125 | 127 | return [
|
126 |
| - RestoreGradleDependencies(ctx, is_git_diff, BUILD_DEP_TREE_TIMEOUT), |
127 |
| - RestoreMavenDependencies(ctx, is_git_diff, BUILD_DEP_TREE_TIMEOUT), |
128 |
| - RestoreSbtDependencies(ctx, is_git_diff, BUILD_DEP_TREE_TIMEOUT), |
129 |
| - RestoreGoDependencies(ctx, is_git_diff, BUILD_DEP_TREE_TIMEOUT), |
130 |
| - RestoreNugetDependencies(ctx, is_git_diff, BUILD_DEP_TREE_TIMEOUT), |
131 |
| - RestoreNpmDependencies(ctx, is_git_diff, BUILD_DEP_TREE_TIMEOUT), |
132 |
| - RestoreRubyDependencies(ctx, is_git_diff, BUILD_DEP_TREE_TIMEOUT), |
| 128 | + RestoreGradleDependencies(ctx, is_git_diff, build_dep_tree_timeout), |
| 129 | + RestoreMavenDependencies(ctx, is_git_diff, build_dep_tree_timeout), |
| 130 | + RestoreSbtDependencies(ctx, is_git_diff, build_dep_tree_timeout), |
| 131 | + RestoreGoDependencies(ctx, is_git_diff, build_dep_tree_timeout), |
| 132 | + RestoreNugetDependencies(ctx, is_git_diff, build_dep_tree_timeout), |
| 133 | + RestoreNpmDependencies(ctx, is_git_diff, build_dep_tree_timeout), |
| 134 | + RestoreRubyDependencies(ctx, is_git_diff, build_dep_tree_timeout), |
133 | 135 | ]
|
134 | 136 |
|
135 | 137 |
|
|
0 commit comments