Skip to content

Commit 6edf9cf

Browse files
authored
Replace lockfile with dependency source in targets (#362)
- [x] I ran `make setup && make` to update the generated code after editing a `.atd` file (TODO: have a CI check) - [x] I made sure we're still backward compatible with old versions of the CLI. For example, the Semgrep backend need to still be able to *consume* data generated by Semgrep 1.50.0. See https://atd.readthedocs.io/en/latest/atdgen-tutorial.html#smooth-protocol-upgrades Note that the types related to the semgrep-core JSON output or the semgrep-core RPC do not need to be backward compatible!
1 parent be813cf commit 6edf9cf

File tree

7 files changed

+60
-60
lines changed

7 files changed

+60
-60
lines changed

semgrep_output_v1.atd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,7 @@ type analyzer <ocaml attr="deriving show"> = string wrap <ocaml module="Analyzer
20922092
*)
20932093
type target <ocaml attr="deriving show"> = [
20942094
| CodeTarget of code_target
2095-
| LockfileTarget of lockfile
2095+
| DependencySourceTarget of dependency_source
20962096
]
20972097

20982098
(*
@@ -2109,7 +2109,7 @@ type code_target <ocaml attr="deriving show"> = {
21092109
*)
21102110
analyzer: analyzer;
21112111
products: product list;
2112-
?lockfile_target: lockfile option;
2112+
?dependency_source: dependency_source option;
21132113
}
21142114

21152115
type scanning_roots <ocaml attr="deriving show"> = {

semgrep_output_v1.jsonschema

Lines changed: 3 additions & 3 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 & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.py

Lines changed: 12 additions & 12 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: 8 additions & 8 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: 32 additions & 32 deletions
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: 1 addition & 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)