mirror of https://github.com/knative/client.git
Verify codegen use common funcs
This commit is contained in:
parent
efcb4ecfd0
commit
7804812bcc
|
@ -20,7 +20,7 @@ set -o pipefail
|
|||
set -o errexit
|
||||
set -o nounset
|
||||
|
||||
source_dirs="cmd pkg test lib tools"
|
||||
source_dirs="cmd pkg test tools"
|
||||
|
||||
# Store for later
|
||||
if [ -z "${1-}" ]; then
|
||||
|
|
|
@ -23,12 +23,11 @@ source "$(go run knative.dev/hack/cmd/script library.sh)"
|
|||
|
||||
"${REPO_ROOT_DIR}"/hack/build.sh --codegen
|
||||
if output="$(git status --porcelain)" && [ -z "$output" ]; then
|
||||
echo "${REPO_ROOT_DIR} is up to date."
|
||||
subheader "${REPO_ROOT_DIR} is up to date."
|
||||
else
|
||||
echo "ERROR: Modified files found:"
|
||||
error 'Modified files found:'
|
||||
git status --porcelain
|
||||
echo "ERROR: Diff"
|
||||
error 'Diff'
|
||||
git diff
|
||||
echo "ERROR: ${REPO_ROOT_DIR} is out of date. Please run ./hack/build.sh -c and commit."
|
||||
exit 1
|
||||
abort "${REPO_ROOT_DIR} is out of date. Please run ./hack/build.sh -c and commit."
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue