Skip to content

Commit fe889d4

Browse files
fix: use slices.Contains to check if we are building for windows/amd64
1 parent 6f5df45 commit fe889d4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

magefile.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,11 +1072,8 @@ func packageAgent(ctx context.Context, platforms []string, dependenciesVersion s
10721072
mg.Deps(agentBinaryTarget, CrossBuildGoDaemon)
10731073

10741074
// compile the elastic-agent.exe proxy binary for the windows archive
1075-
for _, platform := range platforms {
1076-
if platform == "windows/amd64" {
1077-
mg.Deps(Build.WindowsArchiveRootBinary)
1078-
break
1079-
}
1075+
if slices.Contains(platforms, "windows/amd64") {
1076+
mg.Deps(Build.WindowsArchiveRootBinary)
10801077
}
10811078

10821079
mg.SerialDeps(devtools.Package, TestPackages)

0 commit comments

Comments
 (0)