Skip to content

Commit 64dd682

Browse files
authored
chore(lfs): Added manifest_path to FoundDependency (#311)
In order to better support PTT, the CLI will now be able to record a dependency's manifest filepath using the new attribute added in this PR. - [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.17.0. See https://atd.readthedocs.io/en/latest/atdgen-tutorial.html#smooth-protocol-upgrades
1 parent 1446208 commit 64dd682

7 files changed

+102
-25
lines changed

semgrep_output_v1.atd

+5
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,11 @@ type found_dependency = {
11131113
<ts repr="map">;
11141114
?resolved_url: string option;
11151115
transitivity: transitivity;
1116+
(* Path to the manifest file that defines the project containing this dependency
1117+
*
1118+
* Examples: package.json, nested/folder/pom.xml
1119+
*)
1120+
?manifest_path: fpath option;
11161121
(* Path to the lockfile that contains this dependency.
11171122
*
11181123
* Examples: package-lock.json, nested/folder/requirements.txt, go.mod

semgrep_output_v1.jsonschema

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

semgrep_output_v1.proto

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

semgrep_output_v1.py

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

semgrep_output_v1.ts

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

semgrep_output_v1_j.ml

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

semgrep_output_v1_j.mli

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

0 commit comments

Comments
 (0)