This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Flyte-Bot <[email protected]> Co-authored-by: flyte-bot <[email protected]>
- Loading branch information
Showing
4 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
echo "Running go generate" | ||
go generate ./... | ||
|
||
# This section is used by GitHub workflow to ensure that the generation step was run | ||
if [ -n "$DELTA_CHECK" ]; then | ||
DIRTY=$(git status --porcelain) | ||
if [ -n "$DIRTY" ]; then | ||
echo "FAILED: Go code updated without commiting generated code." | ||
echo "Ensure make generate has run and all changes are committed." | ||
DIFF=$(git diff) | ||
echo "diff detected: $DIFF" | ||
DIFF=$(git diff --name-only) | ||
echo "files different: $DIFF" | ||
exit 1 | ||
else | ||
echo "SUCCESS: Generated code is up to date." | ||
fi | ||
fi |