Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dep-resolution): add dependency resolution errors to core error type #302

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions semgrep_output_v1.atd
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,8 @@ type error_type
* *)
| PatternParseError0 <json name="Pattern parse error">
| IncompatibleRule0 <json name="Incompatible rule">
(* since semgrep 1.94.0 *)
| DependencyResolutionError of resolution_error
bkettle marked this conversation as resolved.
Show resolved Hide resolved
] <ocaml repr="classic">

type incompatible_rule
Expand Down Expand Up @@ -1846,6 +1848,7 @@ type manifest = {
}

type resolution_error
<ocaml attr="deriving show">
<python decorator="dataclass(frozen=True)"> = [
| UnsupportedManifest
| MissingRequirement of string
Expand All @@ -1854,6 +1857,7 @@ type resolution_error
]

type resolution_cmd_failed
<ocaml attr="deriving show">
<python decorator="dataclass(frozen=True)"> = {
command: string;
message: string;
Expand Down
11 changes: 10 additions & 1 deletion semgrep_output_v1.jsonschema

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion semgrep_output_v1.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

304 changes: 162 additions & 142 deletions semgrep_output_v1.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading