Skip to content

Commit 512c0bd

Browse files
authored
chore: add install lines to makefile (#291)
Part of [this fix](https://github.com/semgrep/semgrep-proprietary/pull/2225) for a sync to OSS that broke. - [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 4a167cc commit 512c0bd

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Makefile

+13-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,19 @@ clean:
7676
setup:
7777
# Please install check-jsonschema (Python tool) if this fails:
7878
check-jsonschema --version
79-
opam update
80-
opam install --deps-only .
79+
opam update -y
80+
opam install -y --deps-only ./dev.opam
81+
82+
.PHONY: setup-ALPINE
83+
setup-ALPINE: setup-PYTHON
84+
85+
.PHONY: setup-MACOS
86+
setup-MACOS:
87+
brew install check-jsonschema
88+
89+
.PHONY: setup-PYTHON
90+
setup-PYTHON:
91+
pip install check-jsonschema
8192

8293
# The tests require semgrep-core, among other things.
8394
#

0 commit comments

Comments
 (0)