Skip to content

Commit 8f7915d

Browse files
committed
chore(dep-resolution): add option to specify dependency configurations to include
1 parent b13a50d commit 8f7915d

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 *)
@@ -2583,7 +2583,7 @@ type dependency_source
25832583
| MultiLockfile of dependency_source list
25842584
] <ocaml repr="classic">
25852585

2586-
(* alt: sca_error_kind *)
2586+
(* alt: sca_error_kind *)
25872587
type resolution_error_kind
25882588
<ocaml attr="deriving show">
25892589
<python decorator="dataclass(frozen=True)"> =
@@ -2670,7 +2670,7 @@ type resolved_subproject
26702670
type resolved_dependency = (found_dependency * downloaded_dependency option)
26712671

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

27152718
(* 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)