From 7367350f41b98d575aebdfe2206c1723d154d8c9 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 22 Mar 2024 22:12:24 -0700 Subject: [PATCH] Use upstream cargo-about --- script/generate-licenses | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/generate-licenses b/script/generate-licenses index 10d85f60dc..ccecec7b85 100755 --- a/script/generate-licenses +++ b/script/generate-licenses @@ -13,10 +13,10 @@ cat assets/themes/LICENSES >> $OUTPUT_FILE echo -e "# ###### CODE LICENSES ######\n" >> $OUTPUT_FILE -[[ "$(cargo about --version)" == "cargo-about 0.5.2" ]] || cargo install cargo-about --locked --git https://github.com/zed-industries/cargo-about --branch error-code-on-warn +[[ "$(cargo about --version)" == "cargo-about 0.6.1" ]] || cargo install cargo-about@0.6.1 echo "Generating cargo licenses" -cargo about generate --fail-on-missing-license -c script/licenses/zed-licenses.toml script/licenses/template.hbs.md >> $OUTPUT_FILE +cargo about generate --fail -c script/licenses/zed-licenses.toml script/licenses/template.hbs.md >> $OUTPUT_FILE sed -i '' 's/"/"/g' $OUTPUT_FILE sed -i '' 's/'/'\''/g' $OUTPUT_FILE # The ` '\'' ` thing ends the string, appends a single quote, and re-opens the string