From 89cde825036b35769c75235c2ca9dcb259673c62 Mon Sep 17 00:00:00 2001 From: Aaron Crickenberger Date: Mon, 22 Apr 2019 18:29:51 -0700 Subject: Update generator to reformat sigs.yaml The following formatting is enforced: - Consistent identation of 2 spaces - Keys are sorted by order of struct fields - Lists are sorted by struct-dependent keys - Comments are stripped I had hopes of using yaml.Node to preserve comments, but found no obvious way to marshal from struct to Node, meaning all data manipulation had to be done against Nodes. This loses us all of the benefits of using a struct: types, known fields, field order. Given that there aren't many comments in sigs.yaml to begin with, I'm erring on the side of dropping support for them. --- hack/verify-generated-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hack/verify-generated-docs.sh') diff --git a/hack/verify-generated-docs.sh b/hack/verify-generated-docs.sh index 73302358..81c85027 100755 --- a/hack/verify-generated-docs.sh +++ b/hack/verify-generated-docs.sh @@ -37,7 +37,7 @@ make 1>/dev/null mismatches=0 break=$(printf "=%.0s" $(seq 1 68)) -for file in $(ls ${CRT_DIR}/sig-*/README.md ${CRT_DIR}/wg-*/README.md ${CRT_DIR}/ug-*/README.md ${CRT_DIR}/committee-*/README.md ${CRT_DIR}/sig-list.md ${CRT_DIR}/OWNERS_ALIASES); do +for file in $(ls ${CRT_DIR}/sigs.yaml ${CRT_DIR}/sig-*/README.md ${CRT_DIR}/wg-*/README.md ${CRT_DIR}/ug-*/README.md ${CRT_DIR}/committee-*/README.md ${CRT_DIR}/sig-list.md ${CRT_DIR}/OWNERS_ALIASES); do real=${file#$CRT_DIR/} if ! diff -q ${file} ${WORKING_DIR}/${real} &>/dev/null; then echo "${file} does not match ${WORKING_DIR}/${real}"; -- cgit v1.2.3