Remove json-diff crate
- It can be stuck in infinite loops - Slow on complex JSON files
This commit is contained in:
Родитель
ac4ad6e2da
Коммит
d604e77039
|
@ -20,8 +20,7 @@ To compute metrics on a continuous integration system:
|
|||
To compare metrics and retrieve the structural JSON of differences
|
||||
in addition to the files containing the minimal tests:
|
||||
|
||||
1. Install json-diff from here: https://github.com/Luni-4/json-diff/releases
|
||||
2. Install json-minimal-tests from here: https://github.com/Luni-4/json-minimal-tests/releases
|
||||
1. Install json-minimal-tests from here: https://github.com/Luni-4/json-minimal-tests/releases
|
||||
|
||||
./check-submodule.py compare-metrics -l TREE_SITTER_LANGUAGE
|
||||
|
||||
|
@ -203,13 +202,7 @@ def compare_metrics(args: argparse.Namespace) -> None:
|
|||
# Create compare directory
|
||||
compare_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
# Get JSON of differences
|
||||
print("\nSave JSON of differences in", compare_dir)
|
||||
run_subprocess(
|
||||
"json-structural-diff-cli", "--raw-json", "-o", compare_dir, old_dir, new_dir
|
||||
)
|
||||
|
||||
# Get minimal tests
|
||||
# Get JSON differences and minimal tests
|
||||
print("\nSave minimal tests in", compare_dir)
|
||||
run_subprocess("json-minimal-tests", "-o", compare_dir, old_dir, new_dir)
|
||||
|
||||
|
|
|
@ -20,12 +20,6 @@ if [ "$RUN_CI" = "no" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
# Install json-diff
|
||||
JSD_LINK="https://github.com/Luni-4/json-structural-diff/releases/download"
|
||||
JSD_VERSION="0.1.0"
|
||||
curl -L "$JSD_LINK/v$JSD_VERSION/json-structural-diff-linux.tar.gz" |
|
||||
tar xz -C $CARGO_HOME/bin
|
||||
|
||||
# Install json minimal tests
|
||||
JMT_LINK="https://github.com/Luni-4/json-minimal-tests/releases/download"
|
||||
JMT_VERSION="0.1.1"
|
||||
|
|
Загрузка…
Ссылка в новой задаче