From 42e94aa55114c2a70ed008fcb2a8305ed47368f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Tue, 16 Feb 2021 15:20:59 +0100 Subject: [PATCH] Only build targz and zip versions of Beats of PACKAGES is set in agent --- x-pack/elastic-agent/magefile.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/x-pack/elastic-agent/magefile.go b/x-pack/elastic-agent/magefile.go index d64042b7d59..0149e7ea0bd 100644 --- a/x-pack/elastic-agent/magefile.go +++ b/x-pack/elastic-agent/magefile.go @@ -621,15 +621,7 @@ func selectedPackageTypes() string { return "" } - envVar := "PACKAGES=" - for _, p := range devtools.SelectedPackageTypes { - if p == devtools.Docker { - envVar += "targz," - } else { - envVar += p.String() + "," - } - } - return envVar[:len(envVar)-1] + return "PACKAGES=targz,zip" } func copyAll(from, to string) error {