Skip to content

Commit

Permalink
Only build targz and zip versions of Beats if PACKAGES is set in agent (
Browse files Browse the repository at this point in the history
  • Loading branch information
kvch committed Feb 16, 2021
1 parent b8ff649 commit 918ebb3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions x-pack/elastic-agent/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 918ebb3

Please sign in to comment.