From 7dea2225a218872e86d2f580e82c089b321617b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Wed, 10 May 2023 16:47:41 +0200 Subject: [PATCH] sdk/resource: Fix build for BSD OSes (#4077) * sdk/resource: Fix build for BSD OSes * Add changelog * Update header in changelog --------- Co-authored-by: Tyler Yahn --- CHANGELOG.md | 4 ++++ sdk/resource/host_id_exec.go | 2 +- sdk/resource/host_id_readfile.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4559541576e..7dd491d2891 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - The deprecated `go.opentelemetry.io/otel/metric/instrument` package is removed. Use `go.opentelemetry.io/otel/metric` instead. (#4055) +### Fixed + +- Fix build for BSD based systems in `go.opentelemetry.io/otel/sdk/resource`. (#4077) + ## [1.16.0-rc.1/0.39.0-rc.1] 2023-05-03 This is a release candidate for the v1.16.0/v0.39.0 release. diff --git a/sdk/resource/host_id_exec.go b/sdk/resource/host_id_exec.go index 0080fc6b692..207acb0ed3a 100644 --- a/sdk/resource/host_id_exec.go +++ b/sdk/resource/host_id_exec.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build bsd || darwin +//go:build darwin || dragonfly || freebsd || netbsd || openbsd || solaris package resource // import "go.opentelemetry.io/otel/sdk/resource" diff --git a/sdk/resource/host_id_readfile.go b/sdk/resource/host_id_readfile.go index df4dc92c195..f92c6dad0f9 100644 --- a/sdk/resource/host_id_readfile.go +++ b/sdk/resource/host_id_readfile.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build bsd || linux +//go:build linux || dragonfly || freebsd || netbsd || openbsd || solaris package resource // import "go.opentelemetry.io/otel/sdk/resource"