0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-19 19:42:19 +02:00
libsignal/bin/regenerate_acknowledgments.sh
Jordan Rose d952869106 CI: Include the cargo-about version in the local tools cache key
GitHub was restoring the 0.5.7 cache, and then not updating the cache
after installing 0.6.0 because it was successfully restored.
2023-12-20 14:03:04 -08:00

27 lines
677 B
Bash
Executable File

#!/bin/bash
#
# Copyright 2023 Signal Messenger, LLC.
# SPDX-License-Identifier: AGPL-3.0-only
#
set -euo pipefail
SCRIPT_DIR=$(dirname "$0")
cd "${SCRIPT_DIR}"/..
. bin/build_helpers.sh
echo "Checking cargo-about version"
VERSION=$(cargo about --version)
echo "Found $VERSION"
EXPECTED_VERSION="cargo-about $(cat acknowledgments/cargo-about-version)"
if [ "$VERSION" != "$EXPECTED_VERSION" ]; then
echo "This tool works with $EXPECTED_VERSION but $VERSION is installed"
false
fi
for template in acknowledgments/*.hbs; do
echo_then_run cargo about generate --config acknowledgments/about.toml --all-features --fail "$template" --output-file "${template%.hbs}"
done