mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-19 22:44:18 +00:00
29 lines
566 B
Bash
Executable File
29 lines
566 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set -euo pipefail
|
|
|
|
go version
|
|
|
|
cd pinniped
|
|
|
|
echo "Running 'module.sh tidy'"
|
|
./hack/module.sh tidy
|
|
echo
|
|
|
|
diffs=$(git --no-pager diff)
|
|
if [[ "$diffs" == "" ]]; then
|
|
echo "Running 'module.sh tidy' did not cause any diffs. Done."
|
|
exit 0
|
|
fi
|
|
|
|
echo "Running 'module.sh tidy' caused the following diffs:"
|
|
echo
|
|
echo "$diffs"
|
|
echo
|
|
echo "Please resolve these diffs, for example by running 'module.sh tidy' and committing the changes."
|
|
|
|
exit 1
|