-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set default circomspect library paths when versions allow
Circomspect added support for a `-L`/`--library` search path flag in analogy to Circom's `-l` argument (as of trailofbits/circomspect#21) that we use on the backend with defaults of the project root and the `node_modules` subdirectory. This PR updates the `sindri lint` command to check whether the current Circomspect version supports the argument, and then to specify the same search paths if the argument is supported. We'll probably end up making the search paths configurable, but this makes the backend consistent with `sindri lint` in the meantime. For testing it manually, you can run ```bash docker compose up -d docker compose exec sindri-js bash ``` on the latest branch, change into a directory with one of our example Circom circuits that has been failing linting, and then run: ```bash sindri lint ``` to make sure that things work as expected. Merges #116 LGTM given by: @KPreisner
- Loading branch information
Showing
2 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters