From: Markus <974709+Links2004@users.noreply.github.com> Date: Mon, 4 Nov 2024 19:17:55 +0000 (+0000) Subject: net/internal/cgotest: don't try to use cgo with netgo build tag X-Git-Tag: go1.24rc1~481 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=dacf253afa7e87cc913f8e25d6870b9e8d62a606;p=gostls13.git 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. Change-Id: I2aed72e6c14535cb1400b30d285bf05aa2498fde GitHub-Last-Rev: 818c72323d3c61576d61dbe7564d15cf866ed67e GitHub-Pull-Request: golang/go#70141 Reviewed-on: https://go-review.googlesource.com/c/go/+/623816 LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor Reviewed-by: Mateusz Poliwczak Reviewed-by: Ian Lance Taylor Reviewed-by: David Chase --- 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