]> Cypherpunks repositories - gostls13.git/commitdiff
net/internal/cgotest: don't try to use cgo with netgo build tag
authorMarkus <974709+Links2004@users.noreply.github.com>
Mon, 4 Nov 2024 19:17:55 +0000 (19:17 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 5 Nov 2024 17:10:13 +0000 (17:10 +0000)
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Mateusz Poliwczak <mpoliwczak34@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/net/internal/cgotest/resstate.go

index 1b4871109eaa06269b2f9a2fe9d397d968774098..62cfa24e46fd0c27c393a22702928b25fe34fa4b 100644 (file)
@@ -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