Skip to content

Commit 29a2fe4

Browse files
authored
fix: fix builds on windows_arm64 (#4388)
1 parent 93b8121 commit 29a2fe4

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

agent/ports_supported.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//go:build linux || windows
2-
// +build linux windows
1+
//go:build linux || (windows && amd64)
32

43
package agent
54

agent/ports_unsupported.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
//go:build !linux && !windows
2-
// +build !linux,!windows
1+
//go:build !linux && !(windows && amd64)
32

43
package agent
54

65
import "github.com/coder/coder/codersdk"
76

87
func (lp *listeningPortsHandler) getListeningPorts() ([]codersdk.ListeningPort, error) {
9-
// Can't scan for ports on non-linux or non-windows systems at the moment.
10-
// The UI will not show any "no ports found" message to the user, so the
11-
// user won't suspect a thing.
8+
// Can't scan for ports on non-linux or non-windows_amd64 systems at the
9+
// moment. The UI will not show any "no ports found" message to the user, so
10+
// the user won't suspect a thing.
1211
return []codersdk.ListeningPort{}, nil
1312
}

0 commit comments

Comments
 (0)