Skip to content

Commit

Permalink
Use go install to install tools from go modules (#20926) (#20995)
Browse files Browse the repository at this point in the history
(cherry picked from commit 65ddc49)
  • Loading branch information
jsoriano authored Sep 7, 2020
1 parent 9f7edf2 commit eaa988d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dev-tools/mage/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func InstallVendored(importPath string) error {

// InstallGoLicenser target installs go-licenser
func InstallGoLicenser() error {
return gotool.Get(
gotool.Get.Package(GoLicenserImportPath),
return gotool.Install(
gotool.Install.Package(GoLicenserImportPath),
)
}
2 changes: 1 addition & 1 deletion libbeat/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ELASTIC_LICENSE_FILE?=../licenses/ELASTIC-LICENSE.txt
SECCOMP_BINARY?=${BEAT_NAME}
SECCOMP_BLACKLIST?=${ES_BEATS}/libbeat/common/seccomp/seccomp-profiler-blacklist.txt
SECCOMP_ALLOWLIST?=${ES_BEATS}/libbeat/common/seccomp/seccomp-profiler-allow.txt
INSTALL_CMD?=get
INSTALL_CMD?=install
export INSTALL_FLAG
export INSTALL_CMD
MAGE_PRESENT := $(shell command -v mage 2> /dev/null)
Expand Down

0 comments on commit eaa988d

Please sign in to comment.