From eed8d229171581cc259ff13866e271476ae46d54 Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Thu, 6 Oct 2022 13:33:08 +0000 Subject: [PATCH] fix: fix builds on windows_arm64 --- agent/ports_supported.go | 3 +-- agent/ports_unsupported.go | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/agent/ports_supported.go b/agent/ports_supported.go index e405aa6c1bbc1..0455717b0b4b8 100644 --- a/agent/ports_supported.go +++ b/agent/ports_supported.go @@ -1,5 +1,4 @@ -//go:build linux || windows -// +build linux windows +//go:build linux || (windows && amd64) package agent diff --git a/agent/ports_unsupported.go b/agent/ports_unsupported.go index 2eabdaca330ac..5f4c446f5e790 100644 --- a/agent/ports_unsupported.go +++ b/agent/ports_unsupported.go @@ -1,13 +1,12 @@ -//go:build !linux && !windows -// +build !linux,!windows +//go:build !linux && !(windows && amd64) package agent import "github.com/coder/coder/codersdk" func (lp *listeningPortsHandler) getListeningPorts() ([]codersdk.ListeningPort, error) { - // Can't scan for ports on non-linux or non-windows systems at the moment. - // The UI will not show any "no ports found" message to the user, so the - // user won't suspect a thing. + // Can't scan for ports on non-linux or non-windows_amd64 systems at the + // moment. The UI will not show any "no ports found" message to the user, so + // the user won't suspect a thing. return []codersdk.ListeningPort{}, nil }