From 72cf7397e67ea5f8b63d3a9ad00ecb85f5c95beb Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Wed, 27 Apr 2022 17:27:08 +0200 Subject: [PATCH] Check old license format in crate submissions (#508) * gh-build-crate.sh: check index in strict mode * Add specific check for "Warning:" during index load Co-authored-by: GHA --- scripts/gh-build-crate.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/gh-build-crate.sh b/scripts/gh-build-crate.sh index 85d54c08..74011b95 100755 --- a/scripts/gh-build-crate.sh +++ b/scripts/gh-build-crate.sh @@ -34,6 +34,15 @@ alr index --del community || true # Show environment for the record env +# Check index for obsolescent features +echo STRICT MODE index checks +alr index --check + +# Check no warning during index loading. +# Such a warning would also happen during `alr printenv`, breaking it. +# TODO: remove after old license deprecation. +alr search --crates 2>&1 | grep "Warning:" && exit 1 + # Test crate for file in $CHANGES; do