Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined: execCommand in host_id_bsd.go #4076

Closed
donbowman opened this issue May 8, 2023 · 1 comment · Fixed by #4077
Closed

undefined: execCommand in host_id_bsd.go #4076

donbowman opened this issue May 8, 2023 · 1 comment · Fixed by #4077
Assignees
Labels
bug Something isn't working
Milestone

Comments

@donbowman
Copy link

donbowman commented May 8, 2023

Description

presumably this is caused by #4015

go.opentelemetry.io/otel/sdk/resource
../../../go/pkg/mod/go.opentelemetry.io/otel/[email protected]/resource/host_id_bsd.go:21:15: undefined: execCommand
../../../go/pkg/mod/go.opentelemetry.io/otel/[email protected]/resource/host_id_bsd.go:22:15: undefined: readFile

this is compiled from amd64 linux to freebsd as:

CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags "-s -w" -installsuffix cgo -o mybin

reproduce it in this repo as:

CGO_ENABLED=0 GOOS=freebsd make

Environment

  • ubuntu 22.04
  • amd64
  • go1.20.1
  • opentelemetry-go version: 1.15.1

Steps To Reproduce

my code doesn't call this directly.
I use

go mod why go.opentelemetry.io/otel/sdk
# go.opentelemetry.io/otel/sdk
git.agilicus.com/platform/secure-exposed-agent/pkg/httpproxy
git.agilicus.com/platform/opa-istio-plugin/v4/pkg/apiauthz
git.agilicus.com/platform/opa-istio-plugin/v4/internal
github.com/open-policy-agent/opa/plugins
go.opentelemetry.io/otel/sdk/trace
go.opentelemetry.io/otel/sdk/resource
go.opentelemetry.io/otel/sdk

Expected behavior

It to compile (as it did in 1.14.0)

@donbowman donbowman added the bug Something isn't working label May 8, 2023
@pellared pellared self-assigned this May 9, 2023
@pellared
Copy link
Member

pellared commented May 9, 2023

I am sorry for introducing the bug. I am working on a fix.

tsmethurst added a commit to superseriousbusiness/gotosocial that referenced this issue May 12, 2023
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this issue May 28, 2023
@XSAM XSAM added this to the untracked milestone Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants