mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Sort JSON files to minimise git diffs
Sort and format JSON files to remove/minimise any diffs between update-json runs. This also acts as a JSON validator to error when the downloaded JSON file has been truncated.
This commit is contained in:
committed by
Sebastian Thiel
parent
93dba234dd
commit
7467f81594
@@ -194,9 +194,10 @@ help${agsuffix}:
|
||||
url = info['discoveryRestUrl'].replace("$", "$$")
|
||||
json_api_targets.append(fake_target)
|
||||
%>\
|
||||
${fake_target}:
|
||||
${fake_target}: $(PYTHON_BIN)
|
||||
@mkdir -p ${target_dir}
|
||||
@-curl --silent --show-error --fail --retry 3 -o '${target}' '${url}'
|
||||
$(PYTHON) $(SORT_JSON_FILE) --skip-missing-file '${target}'
|
||||
% endfor
|
||||
|
||||
update-json: ${' '.join(json_api_targets)}
|
||||
|
||||
Reference in New Issue
Block a user