diff --git a/hack/module.sh b/hack/module.sh index b9c24821..c0f34321 100755 --- a/hack/module.sh +++ b/hack/module.sh @@ -51,6 +51,7 @@ function with_modules() { for mod_file in $(find . -maxdepth 4 -name go.mod | sort); do mod_dir="$(dirname "${mod_file}")" ( + export MOD_DIR="$(pwd)" echo "=> " && \ echo " cd ${mod_dir} && ${cmd}" && \ cd "${mod_dir}" && ${cmd}