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:
parent
4cb0fd3949
commit
ed9fdce6a8
@ -49,7 +49,7 @@ function with_modules() {
|
|||||||
cmd="$(${cmd_function})"
|
cmd="$(${cmd_function})"
|
||||||
|
|
||||||
pushd "${root_dir}"
|
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}")"
|
mod_dir="$(dirname "${mod_file}")"
|
||||||
(
|
(
|
||||||
echo "=> " && \
|
echo "=> " && \
|
||||||
|
Loading…
Reference in New Issue
Block a user