Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 3251ae5

Browse files
authoredJan 12, 2020
fix tests passing when they should not (#378)
1 parent 817c00c commit 3251ae5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎ci/check_go_generate.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@
99

1010
set -euo pipefail
1111

12+
BASE_DIR="$PWD"
1213
TEMP_DIR=$( mktemp -d )
1314
function cleanup() {
1415
rm -rf "${TEMP_DIR}"
1516
}
1617
trap cleanup EXIT
1718

1819
cp -r . "${TEMP_DIR}/"
20+
cd $TEMP_DIR
1921
go generate ./...
20-
if ! diff -r . "${TEMP_DIR}"; then
22+
if ! diff -r . "${BASE_DIR}"; then
2123
echo
2224
echo "The generated files aren't up to date."
2325
echo "Update them with the 'go generate ./...' command."

0 commit comments

Comments
 (0)
This repository has been archived.