mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
30 lines
589 B
Bash
30 lines
589 B
Bash
|
#!/usr/bin/env bash
|
||
|
#
|
||
|
# Script used to verify the depdencies of the project.
|
||
|
#
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
# Exclude local crates.
|
||
|
TEXT=$(\
|
||
|
cargo crev verify --show-latest-trusted --skip-verified --recursive --skip-known-owners |\
|
||
|
grep -v "^local" |\
|
||
|
grep -v "↑" |\
|
||
|
grep -v "=[ ]*$" |\
|
||
|
tee /dev/stderr \
|
||
|
)
|
||
|
|
||
|
if [ ! -z "${1-}" ] ; then
|
||
|
echo "Opening the crate $1"
|
||
|
|
||
|
cargo crev open $@
|
||
|
cargo crev review $@
|
||
|
|
||
|
else
|
||
|
if [ ! -z "$TEXT" ]; then
|
||
|
echo "Found a depenedncy requires verification"
|
||
|
exit 1
|
||
|
else
|
||
|
echo "All dependencies are verified"
|
||
|
fi
|
||
|
fi
|