From 6ebd8335514bd3739cce1fdb1145712dfeda5f4c Mon Sep 17 00:00:00 2001 From: Alex Cohn Date: Fri, 10 Jun 2022 12:05:13 -0500 Subject: Disable extendedstats on darwin The Darwin golang.org/x/sys/unix package does not contain a TCPInfo struct, which causes the project not to compile on macOS systems. --- extendedstats/other.go | 4 ++-- extendedstats/unix.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extendedstats/other.go b/extendedstats/other.go index d720384..825ea95 100644 --- a/extendedstats/other.go +++ b/extendedstats/other.go @@ -1,5 +1,5 @@ -//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd -// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd +//go:build !dragonfly && !freebsd && !linux && !netbsd && !openbsd +// +build !dragonfly,!freebsd,!linux,!netbsd,!openbsd package extendedstats diff --git a/extendedstats/unix.go b/extendedstats/unix.go index e50d719..c4dc065 100644 --- a/extendedstats/unix.go +++ b/extendedstats/unix.go @@ -1,5 +1,5 @@ -//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd -// +build darwin dragonfly freebsd linux netbsd openbsd +//go:build dragonfly || freebsd || linux || netbsd || openbsd +// +build dragonfly freebsd linux netbsd openbsd package extendedstats -- cgit v1.2.3 From b34a73ee16389932b3cc635218bf624ac8911abe Mon Sep 17 00:00:00 2001 From: Alex Cohn Date: Fri, 10 Jun 2022 12:11:02 -0500 Subject: update go.mod: golang.org/x/sys is no longer indirect --- go.mod | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 39b9252..b69fccd 100644 --- a/go.mod +++ b/go.mod @@ -2,9 +2,9 @@ module github.com/network-quality/goresponsiveness go 1.18 -require golang.org/x/net v0.0.0-20220225172249-27dd8689420f - require ( - golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect - golang.org/x/text v0.3.7 // indirect + golang.org/x/net v0.0.0-20220225172249-27dd8689420f + golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a ) + +require golang.org/x/text v0.3.7 // indirect -- cgit v1.2.3