Skip to content

Commit fb7f85e

Browse files
committed
Fix tool download on 64-bit Windows
When compiling the agent on 64-bit Windows, tool downloads fail, as no 64-bit Windows builds of the tools are available (as far as I can tell). This commit directs agents compiled for 64-bit Windows to just download the 32-bit Windows variant of the tool. Signed-off-by: Hanno Braun <[email protected]>
1 parent 906c87e commit fb7f85e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/download.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ type index struct {
5151
}
5252

5353
var systems = map[string]string{
54-
"linuxamd64": "x86_64-linux-gnu",
55-
"linux386": "i686-linux-gnu",
56-
"darwinamd64": "apple-darwin",
57-
"windows386": "i686-mingw32",
54+
"linuxamd64": "x86_64-linux-gnu",
55+
"linux386": "i686-linux-gnu",
56+
"darwinamd64": "apple-darwin",
57+
"windows386": "i686-mingw32",
58+
"windowsamd64": "i686-mingw32",
5859
}
5960

6061
func mimeType(data []byte) (string, error) {

0 commit comments

Comments
 (0)