-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[builder] unknown revision confmap/provider/envprovider/v0.109.0
#11129
Comments
confmap/provider/envprovider/v0.109.0
The module was upgraded to a stable version v1.15. https://github.com/open-telemetry/opentelemetry-collector/releases/tag/confmap%2Fprovider%2Fenvprovider%2Fv1.15.0. Please update your builder config |
@dmitryax Thanks, but I am still running into the issue. Exactly what should I update? If I update to
Otherwise if I keep it at: |
@mmynk, please update the builder version to the latest. Let us know if that works |
I'm using builder v0.109.0. dist:
name: ab
output_path: ./otelcol-dev
otelcol_version: 1.15.0
receivers:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver v0.109.0
- gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.109.0
processors:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.109.0
- gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.109.0
exporters:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.109.0
- gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.109.0 I am getting the same error:
With the below yaml, it's the original issue. dist:
name: ab
output_path: ./otelcol-dev
otelcol_version: 0.109.0 |
I see. This is clearly a bug in the builder code https://github.com/open-telemetry/opentelemetry-collector/blob/main/cmd/builder/internal/builder/config.go#L219-L231. It's not built to work with 1.x providers OOTB |
The workaround is to define the provides explicitly. @mmynk you can add the following section and it should work providers:
- gomod: go.opentelemetry.io/collector/confmap/provider/envprovider v1.15.0
- gomod: go.opentelemetry.io/collector/confmap/provider/fileprovider v1.15.0
- gomod: go.opentelemetry.io/collector/confmap/provider/httpprovider v0.109.0
- gomod: go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.109.0
- gomod: go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.109.0 |
@mmynk Make sure to use builder.yaml dist:
name: ab
output_path: ./otelcol-dev
otelcol_version: 0.109.0
receivers:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver v0.109.0
- gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.109.0
processors:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor v0.109.0
- gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.109.0
exporters:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.109.0
- gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.109.0
providers:
- gomod: go.opentelemetry.io/collector/confmap/provider/envprovider v1.15.0
- gomod: go.opentelemetry.io/collector/confmap/provider/fileprovider v1.15.0
- gomod: go.opentelemetry.io/collector/confmap/provider/httpprovider v0.109.0
- gomod: go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.109.0
- gomod: go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.109.0 $ go install go.opentelemetry.io/collector/cmd/[email protected]
$ builder --config builder.yaml
2024-09-11T06:31:18.720+0200 INFO internal/command.go:125 OpenTelemetry Collector Builder {"version": "v0.109.0"}
2024-09-11T06:31:18.722+0200 INFO internal/command.go:161 Using config file {"path": "0911-builder-ab.yaml"}
2024-09-11T06:31:18.722+0200 INFO builder/config.go:142 Using go {"go-executable": "/usr/local/go/bin/go"}
2024-09-11T06:31:18.726+0200 INFO builder/main.go:101 Sources created {"path": "./otelcol-dev"}
2024-09-11T06:31:20.969+0200 INFO builder/main.go:192 Getting go modules
2024-09-11T06:31:22.247+0200 INFO builder/main.go:112 Compiling
2024-09-11T06:31:41.387+0200 INFO builder/main.go:131 Compiled {"binary": "./otelcol-dev/ab"} |
What about using We have some automation in place to build a new version of our custom collector that relies on all the components using the same version matching the one from the collector itself. Having different version numbers per component throws a wrench into it 😄 May I ask the rationale behind having different numbers in a single release? (e.g. v1.15.0/v0.109.0) Understanding it may help me figure out a way to fix our automation. |
This assumption isn't always correct even without the The collector is on its (long) way to a stable v1.x release. During this journey, specific libraries or components (essentially Go modules) individually reach the "stable" status and switch the versioning to the stable version
The core and contrib versions are usually the same, but they are not guaranteed to be the same. I hope other maintainers can keep me honest and correct any mistakes in my understanding. |
@andrzej-stencel that is super helful, thanks! |
Thanks for the debug, guys. Will stick to v0.108.1 until this is fixed. |
@mmynk I would recommend you explicitly list the providers. |
This is closed now. ocb v0.109.0 is working without any changes. |
Describe the bug
Unable to build using collector v0.109.0
Steps to reproduce
Use conf map
envprovider
What did you expect to see?
Successfully built and generated collector binary.
What did you see instead?
What version did you use?
v0.109.0
What config did you use?
Environment
Ubuntu 20.04
Additional context
The text was updated successfully, but these errors were encountered: