Skip to content

Commit 7a9cf4c

Browse files
committed
chore(dep-resolution): add dependency resolution errors to core error type
1 parent 5149397 commit 7a9cf4c

7 files changed

+2854
-2785
lines changed

semgrep_output_v1.atd

+3
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ type error_type
511511
* *)
512512
| PatternParseError0 <json name="Pattern parse error">
513513
| IncompatibleRule0 <json name="Incompatible rule">
514+
| DependencyResolutionError of resolution_error
514515
] <ocaml repr="classic">
515516

516517
type incompatible_rule
@@ -1825,6 +1826,7 @@ type manifest = {
18251826
}
18261827

18271828
type resolution_error
1829+
<ocaml attr="deriving show">
18281830
<python decorator="dataclass(frozen=True)"> = [
18291831
| UnsupportedManifest
18301832
| MissingRequirement of string
@@ -1833,6 +1835,7 @@ type resolution_error
18331835
]
18341836

18351837
type resolution_cmd_failed
1838+
<ocaml attr="deriving show">
18361839
<python decorator="dataclass(frozen=True)"> = {
18371840
command: string;
18381841
message: string;

semgrep_output_v1.jsonschema

+10-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.proto

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.py

+162-142
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)