From 2776209e499a5941d59b87e78f74e0e15151542f Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 7 Apr 2020 08:09:13 -0700 Subject: [PATCH] portlist: don't depend on osexec package on ios, even if it's unused Continuation of 5bb14c07dce8e5c320. The earlier commit provided the space savings (as the linker could see through that osexec was unused at runtime), but it didn't clean up the dep graph (from go list -json or godepgraph). This removes the netstat.go file from the build too, just so the dep list looks more reasonable. --- portlist/netstat.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/portlist/netstat.go b/portlist/netstat.go index 48e8c75ec..9f7beb8dc 100644 --- a/portlist/netstat.go +++ b/portlist/netstat.go @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build !darwin !arm64 + package portlist import (