Check go.mod in codegen verification
* Check go.mod in codegen verification
Verifies if go.mod is up to date in build tests
* Copy go.mod in diffroot for comparison
@@ -37,6 +37,7 @@ mkdir -p "${TMP_DIFFROOT}"
cp -aR \
"${REPO_ROOT_DIR}/go.sum" \
+ "${REPO_ROOT_DIR}/go.mod" \
"${REPO_ROOT_DIR}/pkg" \
"${REPO_ROOT_DIR}/third_party" \
"${REPO_ROOT_DIR}/vendor" \
@@ -49,6 +50,9 @@ ret=0
diff -Naupr --no-dereference \
"${REPO_ROOT_DIR}/go.sum" "${TMP_DIFFROOT}/go.sum" || ret=1
+diff -Naupr --no-dereference \
+ "${REPO_ROOT_DIR}/go.mod" "${TMP_DIFFROOT}/go.mod" || ret=1
+
diff -Naupr --no-dereference \
"${REPO_ROOT_DIR}/pkg" "${TMP_DIFFROOT}/pkg" || ret=1
