From ed9fdce6a8ffa985949c611a9749ce664552488f Mon Sep 17 00:00:00 2001 From: Andrew Keesler Date: Wed, 12 Aug 2020 09:36:33 -0400 Subject: [PATCH] hack/module.sh: sort modules for deterministic runs find(1) seems to look at directory entries in the order in which they exist in the directory fs entry. Let's sort these so that we get the same results regardless of the order of the directory entries. Signed-off-by: Andrew Keesler --- hack/module.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/module.sh b/hack/module.sh index d0a19d775..c870caec5 100755 --- a/hack/module.sh +++ b/hack/module.sh @@ -49,7 +49,7 @@ function with_modules() { cmd="$(${cmd_function})" pushd "${root_dir}" - for mod_file in $(find . -maxdepth 4 -name go.mod); do + for mod_file in $(find . -maxdepth 4 -name go.mod | sort); do mod_dir="$(dirname "${mod_file}")" ( echo "=> " && \