From 18eb49652bc7235465434d9563e4d215083d48e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Wed, 1 Apr 2020 15:31:49 +0200 Subject: [PATCH] Install all packages in mage (#17388) ## What does this PR do? This PR fixes the install command of `mage`. With the adoption of go modules adding `/...` has become necessary in order to install the pacakge. ## Why is it important? This issue prevents beats from installing `mage` if it is not present. One of the symptoms of this problem is the failure to generate new Beats if `mage` is not available. --- dev-tools/make/mage.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-tools/make/mage.mk b/dev-tools/make/mage.mk index bf8c443a5fe..95a74d33057 100644 --- a/dev-tools/make/mage.mk +++ b/dev-tools/make/mage.mk @@ -7,7 +7,7 @@ export MAGE_IMPORT_PATH mage: ifndef MAGE_PRESENT @echo Installing mage $(MAGE_VERSION) from vendor dir. - go install -mod=vendor -ldflags="-X $(MAGE_IMPORT_PATH)/mage.gitTag=$(MAGE_VERSION)" ${MAGE_IMPORT_PATH} + go install -mod=vendor -ldflags="-X $(MAGE_IMPORT_PATH)/mage.gitTag=$(MAGE_VERSION)" ${MAGE_IMPORT_PATH}/... @-mage -clean endif @true