Skip to content

Commit

Permalink
scripts: add -mod=vendor to go run in check-env.sh
Browse files Browse the repository at this point in the history
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 <jmulligan@redhat.com>
  • Loading branch information
phlogistonjohn authored and mergify[bot] committed Jun 17, 2020
1 parent 134e11e commit e111f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e111f2b

Please sign in to comment.