From e111f2b613bd7ee3819cfc132a002dbbd5babd1d Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 16 Jun 2020 16:00:05 -0400 Subject: [PATCH] scripts: add -mod=vendor to go run in check-env.sh Without -mod=vendor running go run in this script may take more resources than needed to execute. This also makes it consistent go build (and alike) are invoked in the other scripts and the Makefile. Signed-off-by: John Mulligan --- scripts/check-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-env.sh b/scripts/check-env.sh index d1f722907..0ed941d71 100755 --- a/scripts/check-env.sh +++ b/scripts/check-env.sh @@ -41,7 +41,7 @@ if [ -n "$(command -v go)" ]; then # in case of a failed execution, the user will be informed about # the missing packages based on whether they are on rpm or debian # based systems. - if ! go run "${LIBCHECK}" > /dev/null; then + if ! go run -mod=vendor "${LIBCHECK}" > /dev/null; then if [ -n "${RPM_CMD}" ]; then echo "Packages libcephfs-devel librbd-devel librados-devel need to be installed" elif [ -n "${DPKG_CMD}" ]; then