From cecfc148752ea0586247a45170874f1a9c3dbf47 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 22 Jul 2021 11:57:34 -0700 Subject: [PATCH] net/dns: don't build init*.go on non-windows To remove the regexp dep on iOS, notably. Updates tailscale/corp#2238 Signed-off-by: Brad Fitzpatrick --- net/dns/ini.go | 2 ++ net/dns/ini_test.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/net/dns/ini.go b/net/dns/ini.go index 802eda5b0..4e270d4bd 100644 --- a/net/dns/ini.go +++ b/net/dns/ini.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 windows + package dns import ( diff --git a/net/dns/ini_test.go b/net/dns/ini_test.go index d41fa9462..8236f5f48 100644 --- a/net/dns/ini_test.go +++ b/net/dns/ini_test.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 windows + package dns import (