Skip to content

Commit

Permalink
sdk/resource: Fix build for BSD OSes (#4077)
Browse files Browse the repository at this point in the history
* sdk/resource: Fix build for BSD OSes

* Add changelog

* Update header in changelog

---------

Co-authored-by: Tyler Yahn <[email protected]>
  • Loading branch information
pellared and MrAlias authored May 10, 2023
1 parent 0b61641 commit 7dea222
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion sdk/resource/host_id_exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion sdk/resource/host_id_readfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 7dea222

Please sign in to comment.