Skip to content

Commit 65ddc49

Browse files
authored
Use go install to install tools from go modules (#20926)
1 parent 157c286 commit 65ddc49

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

dev-tools/mage/install.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func InstallVendored(importPath string) error {
3737

3838
// InstallGoLicenser target installs go-licenser
3939
func InstallGoLicenser() error {
40-
return gotool.Get(
41-
gotool.Get.Package(GoLicenserImportPath),
40+
return gotool.Install(
41+
gotool.Install.Package(GoLicenserImportPath),
4242
)
4343
}

libbeat/scripts/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ELASTIC_LICENSE_FILE?=../licenses/ELASTIC-LICENSE.txt
2525
SECCOMP_BINARY?=${BEAT_NAME}
2626
SECCOMP_BLACKLIST?=${ES_BEATS}/libbeat/common/seccomp/seccomp-profiler-blacklist.txt
2727
SECCOMP_ALLOWLIST?=${ES_BEATS}/libbeat/common/seccomp/seccomp-profiler-allow.txt
28-
INSTALL_CMD?=get
28+
INSTALL_CMD?=install
2929
export INSTALL_FLAG
3030
export INSTALL_CMD
3131
MAGE_PRESENT := $(shell command -v mage 2> /dev/null)

0 commit comments

Comments
 (0)