From cf39d0d0138234f20f50dfec78f9df23f6a4fbfa Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sat, 13 May 2023 14:22:41 -0400 Subject: [PATCH] Restructure sources.json to make packaging easier --- sources/sources.json | 16 ++++++++-------- sources/update-sources.sh | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sources/sources.json b/sources/sources.json index 6896fa3..e3918e2 100644 --- a/sources/sources.json +++ b/sources/sources.json @@ -1,32 +1,32 @@ -[ - { +{ + "cargo-audit": { "hash": "sha256-ICNcBqlkX1k3J5vc/bfoXw/+l2LdHOchv4PfY0G7Y94=", "pname": "cargo-audit", "version": "0.17.6" }, - { + "cargo-deny": { "hash": "sha256-/2HClc4rzQvvbmWXOotZuC9MEPPnPZKWCOVC2AadtG4=", "pname": "cargo-deny", "version": "0.13.9" }, - { + "cargo-llvm-cov": { "hash": "sha256-5xHDjNFQDmi+SnhxfoCxoBdCqHpZEk/87r2sBKsT+W4=", "pname": "cargo-llvm-cov", "version": "0.5.19" }, - { + "cargo-nextest": { "hash": "sha256-IY8H9TnOBj0nAn8G1o8onN5kWAhJxkiBhU9jQ0/pIss=", "pname": "cargo-nextest", "version": "0.9.52" }, - { + "cargo-release": { "hash": "sha256-tmyIQMjKs37ZVqG/WV4Qe99Jc+bzneTmEMrvxV1Gnsc=", "pname": "cargo-release", "version": "0.24.10" }, - { + "cargo-udeps": { "hash": "sha256-jvEhE/fngzEzRinA4iZYJbBfcl2CGbTwQB52h5laVf8=", "pname": "cargo-udeps", "version": "0.1.39" } -] +} diff --git a/sources/update-sources.sh b/sources/update-sources.sh index a2d0c18..79fd057 100755 --- a/sources/update-sources.sh +++ b/sources/update-sources.sh @@ -19,5 +19,5 @@ do done popd -jq -s "." $TEMP_DIR/* > $SOURCES_FILE +jq -s "map({(.pname): .}) | add" $TEMP_DIR/* > $SOURCES_FILE rm -r $TEMP_DIR