From bdddadb0ebffd2d0606f588f028d47660ed956e3 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Thu, 16 Sep 2021 11:00:45 -0700 Subject: [PATCH] Add build constraints to not build on windows --- .../confluent-kafka-go/kafka/splunkkafka/carrier.go | 2 ++ .../confluent-kafka-go/kafka/splunkkafka/carrier_test.go | 2 ++ .../confluentinc/confluent-kafka-go/kafka/splunkkafka/config.go | 2 ++ .../confluent-kafka-go/kafka/splunkkafka/config_test.go | 2 ++ .../confluentinc/confluent-kafka-go/kafka/splunkkafka/kafka.go | 2 ++ .../confluent-kafka-go/kafka/splunkkafka/kafka_test.go | 2 ++ .../confluent-kafka-go/kafka/splunkkafka/test/kafka_test.go | 2 ++ 7 files changed, 14 insertions(+) diff --git a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/carrier.go b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/carrier.go index f32bf285e..e9dd91b32 100644 --- a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/carrier.go +++ b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/carrier.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows + package splunkkafka import ( diff --git a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/carrier_test.go b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/carrier_test.go index ef8e48490..a5a675dce 100644 --- a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/carrier_test.go +++ b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/carrier_test.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows + package splunkkafka_test import ( diff --git a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/config.go b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/config.go index b23ebbd83..2c7f52858 100644 --- a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/config.go +++ b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/config.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows + package splunkkafka import ( diff --git a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/config_test.go b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/config_test.go index b68ebbea7..4079bae88 100644 --- a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/config_test.go +++ b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/config_test.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows + package splunkkafka import ( diff --git a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/kafka.go b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/kafka.go index c2154fb50..f2fa8036f 100644 --- a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/kafka.go +++ b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/kafka.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows + // Package splunkkafka provides functions to trace the // github.com/confluentinc/confluent-kafka-go/kafka package. package splunkkafka // import "github.com/signalfx/splunk-otel-go/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka" diff --git a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/kafka_test.go b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/kafka_test.go index 239e0ce8f..e62697050 100644 --- a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/kafka_test.go +++ b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/kafka_test.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows + package splunkkafka import ( diff --git a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/test/kafka_test.go b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/test/kafka_test.go index a33069b14..7595e1d87 100644 --- a/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/test/kafka_test.go +++ b/instrumentation/github.com/confluentinc/confluent-kafka-go/kafka/splunkkafka/test/kafka_test.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !windows + package test import (