Skip to content

Commit be813cf

Browse files
authored
Add Opam ecosystem (#363)
This will allows us to dogfood SSC and TR with Opam packages on the semgrep-pro repo test plan: see related PR in semgrep - [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 488ac75 commit be813cf

7 files changed

+109
-9
lines changed

semgrep_output_v1.atd

+4
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ type ecosystem
515515
(* Deprecated: Mix is a build system, should use Hex, which is the ecosystem *)
516516
| Mix <json name="mix">
517517
| Hex <json name="hex">
518+
| Opam <json name="opam">
518519
]
519520

520521
type transitivity
@@ -2234,6 +2235,7 @@ type lockfile_kind
22342235
| PodfileLock
22352236
| MixLock
22362237
| ConanLock
2238+
| OpamLocked
22372239
] <ocaml repr="classic">
22382240

22392241
(* TODO: use <ocaml repr="classic"> *)
@@ -2296,6 +2298,8 @@ type manifest_kind
22962298
| ConanFilePy
22972299
(* .csproj - https://docs.microsoft.com/en-us/dotnet/core/tools/csproj *)
22982300
| Csproj
2301+
(* .opam - https://opam.ocaml.org/doc/Manual.html#Package-definitions *)
2302+
| OpamFile
22992303
]
23002304

23012305
type manifest

semgrep_output_v1.jsonschema

+6-3
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

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

semgrep_output_v1.ts

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

semgrep_output_v1_j.ml

+22-1
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)