From 818c72323d3c61576d61dbe7564d15cf866ed67e Mon Sep 17 00:00:00 2001 From: Markus <974709+Links2004@users.noreply.github.com> Date: Thu, 31 Oct 2024 16:32:59 +0100 Subject: [PATCH] net/internal/cgotest: don't try to use cgo with netgo build tag When using bazel with hermetic_cc_toolchain resolv.h is not available. --- src/net/internal/cgotest/resstate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/internal/cgotest/resstate.go b/src/net/internal/cgotest/resstate.go index 1b4871109e..62cfa24e46 100644 --- a/src/net/internal/cgotest/resstate.go +++ b/src/net/internal/cgotest/resstate.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build cgo && darwin +//go:build !netgo && cgo && darwin package cgotest