mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-05 04:56:11 +00:00
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 <akeesler@vmware.com>
This commit is contained in:
@@ -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 "=> " && \
|
||||
|
||||
Reference in New Issue
Block a user