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

🐛 [BUG] - opentelemetry-collector-builder --config didn't work #21

Open
dimitrisfinas opened this issue Sep 29, 2022 · 2 comments
Open
Labels
bug Something isn't working

Comments

@dimitrisfinas
Copy link

Description

when running command "opentelemetry-collector-builder --config config/builder-config.yml", I got error:
Error: failed to compile the OpenTelemetry Collector distribution: exit status 2. Output: "# github.com/lightstep/telemetry-generator/generatorreceiver/internal/topology\n../generatorreceiver/internal/topology/pickable.go:18:6: missing function body\n../generatorreceiver/internal/topology/pickable.go:18:23: syntax error: unexpected [, expecting (\n../generatorreceiver/internal/topology/pickable.go:20:2: syntax error: non-declaration statement outside function body\n../generatorreceiver/internal/topology/pickable.go:39:2: syntax error: non-declaration statement outside function body\nnote: module requires Go 1.18\n"

but when I followed instructions to install the builder, I encountered no issues

Reproduction URL

https://github.com/lightstep/telemetry-generator

Reproduction steps

1. Follow instructions from README to install opentelemetry-collector-builder
2. Clone the telemetry-generator project
3. Run command opentelemetry-collector-builder --config config/builder-config.yml
4. See error I got in description

Screenshots

![DESCRIPTION](LINK.png)

Logs

full stack:
2022-09-29T07:59:12.531Z        INFO    cmd/root.go:99  OpenTelemetry Collector distribution builder    {"version": "dev", "date": "unknown"}
2022-09-29T07:59:12.531Z        INFO    cmd/root.go:115 Using config file       {"path": "config/builder-config.yml"}
2022-09-29T07:59:12.532Z        INFO    builder/config.go:102   Using go        {"Go executable": "/usr/bin/go"}
2022-09-29T07:59:12.533Z        INFO    builder/main.go:87      Sources created {"path": "build"}
2022-09-29T07:59:47.137Z        INFO    builder/main.go:119     Getting go modules
2022-09-29T08:00:00.579Z        INFO    builder/main.go:98      Compiling
Error: failed to compile the OpenTelemetry Collector distribution: exit status 2. Output: "# github.com/lightstep/telemetry-generator/generatorreceiver/internal/topology\n../generatorreceiver/internal/topology/pickable.go:18:6: missing function body\n../generatorreceiver/internal/topology/pickable.go:18:23: syntax error: unexpected [, expecting (\n../generatorreceiver/internal/topology/pickable.go:20:2: syntax error: non-declaration statement outside function body\n../generatorreceiver/internal/topology/pickable.go:39:2: syntax error: non-declaration statement outside function body\nnote: module requires Go 1.18\n"

Browsers

Chrome

OS

Linux

@dimitrisfinas dimitrisfinas added the bug Something isn't working label Sep 29, 2022
@dimitrisfinas dimitrisfinas changed the title 🐛 [BUG] - <title> 🐛 [BUG] - opentelemetry-collector-builder --config didn't work Sep 29, 2022
@dimitrisfinas
Copy link
Author

I solved the issue by manually install go version 1.18 as explained here https://nextgentips.com/2021/12/23/how-to-install-go-1-18-on-ubuntu-20-04/
I think you should put GO v1.18 minimum as a requirement as the default version on my linux repository is v1.17

@njvrzm
Copy link
Contributor

njvrzm commented Sep 29, 2022

We'll update that, thank you!

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

No branches or pull requests

2 participants