Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Update cargo-about to 0.6.6 and remove workaround to fail on warning (#25209)
Michael Sloan1087e05da49b
diff --git a/script/generate-licenses b/script/generate-licensesindex 51749a91e21..09126e8ad6e 100755--- a/script/generate-licenses+++ b/script/generate-licenses@@ -2,7 +2,7 @@set -euo pipefail-CARGO_ABOUT_VERSION="0.6.1"+CARGO_ABOUT_VERSION="0.6.6"OUTPUT_FILE="${1:-$(pwd)/assets/licenses.md}"TEMPLATE_FILE="script/licenses/template.md.hbs"@@ -25,19 +25,10 @@ fiecho "Generating cargo licenses"-stderr_file=$(mktemp)-cargo about generate \--fail \-c script/licenses/zed-licenses.toml \- "${TEMPLATE_FILE}" \- 2> >(tee "$stderr_file") \- >> $OUTPUT_FILE--if cat "$stderr_file" | grep -v "\[WARN\]" > /dev/null; then- echo "Error: License check failed - warnings found" >&2- exit 1-fi+ "${TEMPLATE_FILE}" >> $OUTPUT_FILEsed -i.bak 's/"/"/g' $OUTPUT_FILEsed -i.bak 's/'/'\''/g' $OUTPUT_FILE # The ` '\'' ` thing ends the string, appends a single quote, and re-opens the stringdiff --git a/script/generate-licenses-csv b/script/generate-licenses-csvindex 121d71b9d1c..cce97a11a61 100755--- a/script/generate-licenses-csv+++ b/script/generate-licenses-csv@@ -2,7 +2,7 @@set -euo pipefail-CARGO_ABOUT_VERSION="0.6.1"+CARGO_ABOUT_VERSION="0.6.6"OUTPUT_FILE="${1:-$(pwd)/assets/licenses.csv}"TEMPLATE_FILE="script/licenses/template.csv.hbs"@@ -15,20 +15,11 @@ fiecho "Generating cargo licenses"-stderr_file=$(mktemp)-cargo about generate \--fail \-c script/licenses/zed-licenses.toml \script/licenses/template.csv.hbs \- 2> >(tee "$stderr_file") \| awk 'NR==1{print;next} NF{print | "sort"}' \> $OUTPUT_FILE-# Check that there are no warnings.-if echo "$about_stderr" | grep -v "\[WARN\]" > /dev/null; then- echo "Error: License check failed - warnings found" >&2- exit 1-fi-echo "generate-licenses-csv completed. See $OUTPUT_FILE"