Skip to content

Commit 6edf9cf

Browse files
authoredMar 11, 2025··
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

7 files changed

+60
-60
lines changed
 

‎semgrep_output_v1.atd

+2-2
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

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

‎semgrep_output_v1.proto

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

‎semgrep_output_v1.py

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

‎semgrep_output_v1.ts

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

‎semgrep_output_v1_j.ml

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

‎semgrep_output_v1_j.mli

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

0 commit comments

Comments
 (0)
Please sign in to comment.