Skip to content

Commit 7107cd5

Browse files
committed
chore(dep-resolution): add option to specify dependency configurations to include
1 parent e2ba73a commit 7107cd5

File tree

7 files changed

+77
-8
lines changed

7 files changed

+77
-8
lines changed

semgrep_output_v1.atd

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,7 +2134,7 @@ type tr_query_cache_request = {
21342134

21352135
(* Response by the backend the the POST /api/cli/tr_cache/lookup *)
21362136
type tr_query_cache_response = {
2137-
cached: (tr_cache_key * tr_cache_match_result) list;
2137+
cached: (tr_cache_key * tr_cache_match_result) list;
21382138
}
21392139

21402140
(* Sent by the CLI to the POST /api/cli/tr_cache *)
@@ -2585,7 +2585,7 @@ type dependency_source
25852585
| MultiLockfile of dependency_source list
25862586
] <ocaml repr="classic">
25872587

2588-
(* alt: sca_error_kind *)
2588+
(* alt: sca_error_kind *)
25892589
type resolution_error_kind
25902590
<ocaml attr="deriving show">
25912591
<python decorator="dataclass(frozen=True)"> =
@@ -2672,7 +2672,7 @@ type resolved_subproject
26722672
type resolved_dependency = (found_dependency * downloaded_dependency option)
26732673

26742674
(* Information about a 3rd-party lib downloaded for Transitive Reachability.
2675-
* To accompany a found_dependency within the Semgrep CLI, passed back and forth
2675+
* To accompany a found_dependency within the Semgrep CLI, passed back and forth
26762676
* from OCaml to Python via RPC. See also SCA_dependency.t in OCaml
26772677
*
26782678
* Source paths is a list of paths to either folders containing source code
@@ -2712,6 +2712,9 @@ type resolve_dependencies_params <python decorator="dataclass(frozen=True)"> = {
27122712
download_dependency_source_code: bool;
27132713
(* whether to allow executing package manager commands *)
27142714
allow_local_builds: bool;
2715+
(* the configurations (e.g. gradle configurations) to resolve. If not specified,
2716+
* all configurations will be resolved. Supported only for Gradle currently. *)
2717+
include_dependency_configurations: string list option;
27152718
}
27162719

27172720
(* Resolution can either succeed or fail, but in either case errors can be

semgrep_output_v1.jsonschema

Lines changed: 16 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.proto

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.py

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.ts

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1_j.ml

Lines changed: 45 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1_j.mli

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)