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

Collector binary reports wrong version #763

Open
pieterlexis-tomtom opened this issue Dec 5, 2024 · 2 comments
Open

Collector binary reports wrong version #763

pieterlexis-tomtom opened this issue Dec 5, 2024 · 2 comments
Labels
bug Something isn't working release-retro

Comments

@pieterlexis-tomtom
Copy link

Hey folks,

I just downloaded otelcol contrib 0.115.1 (released about a day ago). However, the binary reports as being version 0.115.0. See below:

/tmp/tmp.VViyajyZAw $ curl -LO https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.115.1/otelcol-contrib_0.115.1_linux_amd64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 70.4M  100 70.4M    0     0  6353k      0  0:00:11  0:00:11 --:--:-- 8190k
/tmp/tmp.VViyajyZAw $ tar xf otelcol-contrib_0.115.1_linux_amd64.tar.gz
/tmp/tmp.VViyajyZAw $ ./otelcol-contrib -v
otelcol-contrib version 0.115.0

I have some automation in place that checks the currently installed version with the expected version and this breaks now 😉.

Copy link

dosubot bot commented Dec 5, 2024

Hey @pieterlexis-tomtom! I'm here to help you with this issue. If you have any questions or need assistance, feel free to ask.

The issue you're experiencing, where the OpenTelemetry Collector binary reports the wrong version, could be related to a problem in the release process where the version number wasn't correctly embedded in the binary. This can happen if the {{ .Version }} template variable wasn't updated properly during the build process [1][2].

To resolve this, you might want to check if there has been any recent update or fix related to this issue in the repository or if a new release has been made to correct the versioning error. If the problem persists, it might be necessary to manually verify the versioning in the build configuration files, such as .goreleaser.yaml, to ensure the correct version is being set during the build process.

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the bug Something isn't working label Dec 5, 2024
@atoulme
Copy link
Contributor

atoulme commented Dec 6, 2024

We had to rerun the release, with a new tag, as the first release failed only for the contrib build. Tagging this issue as a release retro item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release-retro
Projects
None yet
Development

No branches or pull requests

2 participants