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

Release binary name replaces amd64 with x86_64 #26

Closed
albertteoh opened this issue Jan 2, 2021 · 1 comment · Fixed by #28
Closed

Release binary name replaces amd64 with x86_64 #26

albertteoh opened this issue Jan 2, 2021 · 1 comment · Fixed by #28

Comments

@albertteoh
Copy link
Contributor

albertteoh commented Jan 2, 2021

Hi,

I'd like to understand why the arch is replaced from amd64 to x86_64.

This results in a release binary name like the following: darwin_x86_64. It would be nice if the binary name could be named as darwin_amd64 as how the jaeger releases are named.

The specific motivation for this question/request is to replace the hardcoded linux_x86_64 arch in the jaeger-otel Makefile to support downloading of macOS-built binaries as part of the make build command using the values provided from the go env command, as in my current setup:

$ go env
...
GOARCH="amd64"
...
GOOS="darwin"
...

After manually downloading the binary, I noticed the following error:

$ which opentelemetry-collector-builder
/Users/albertteoh/bin/opentelemetry-collector-builder
$ opentelemetry-collector-builder
[2]    87874 killed     opentelemetry-collector-builder

However, if I obtain the binary via go get as in the README instructions, it works:

$ go get github.com/observatorium/opentelemetry-collector-builder
...
$ which opentelemetry-collector-builder
/Users/albertteoh/go/bin/opentelemetry-collector-builder
$ opentelemetry-collector-builder
2021-01-02T21:25:02.530+1100	INFO	cmd/root.go:82	OpenTelemetry Collector distribution builder	{"version": "dev", "date": "unknown"}
2021-01-02T21:25:02.532+1100	INFO	builder/main.go:80	Sources created	{"path": "/var/folders/3p/yms48z2s6v7c8fy2m_1481g00000gn/T/otelcol-distribution542135792"}
2021-01-02T21:25:02.534+1100	INFO	builder/main.go:94	Using go from PATH	{"Go executable": "/usr/local/bin/go"}
2021-01-02T21:25:02.534+1100	INFO	builder/main.go:97	Compiling
^C

Perhaps I'm using the wrong build or maybe go get should be the recommended way to install & run opentelemetry-collector-builder instead of downloading the binaries?

@jpkrohling
Copy link
Contributor

I don't think there was a specific reason for that, I'd be OK in changing that.

@mergify mergify bot closed this as completed in #28 Jan 15, 2021
mergify bot pushed a commit that referenced this issue Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants