-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Go install builder installs dev version instead of the specified version #8691
Comments
We set the version through a linker flag
which go install will not do by default.
We advise users to install the builder from the official releases (see https://opentelemetry.io/docs/collector/custom-collector/#step-1---install-the-builder) |
Thanks for the reply! I'm not sure I understand what you mean. Is If users are not adviced to use |
Using
That's a good point, thanks for pointing that out :) I agree we should reword this. |
Ah, then I understand how it works 🙂 Thanks for taking the time to explain it! Should I close this issue then, or do should I leave it and you guys can close it if/when you reword the readme? |
Let's leave it open until we reword the README |
Document `go install` limitations on `cmd/builder` README. Fixes #8691
After some further investigating I believe it is not my setup that is causing this issue, so I moved it from Discussions to Issues.
I also split it to 2 separate issues, since they don't seem related (8692).
Describe the bug
I can't currently install any specific version of the builder.
Steps to reproduce
go install go.opentelemetry. io/collector/cmd/builder@v0.86.0
builder version
What did you expect to see?
ocb version 0.86.0
What did you see instead?
ocb version dev
What version did you use?
Version: v0.86.0
What config did you use?
Config: yaml
Environment
OS: Win 11 Version 10.0.22621
Compiler: go 1.21.3
Discussed in #8668
Originally posted by robinlindberg October 11, 2023
This might be two separate bugs.
I am unable to install a specific version of the builder. I always get "dev" which seems to be the default value the version.go file sets.
I suspected the builder version being wrong was the cause of the go.mod being filled with both 0.86.0 and 0.87.0 versions. But now I tried using the binaries of the builder directly, instead of doing Go install. I got the same result when building for the non-latest version, e.g. 0.86.0. Building for the latest version works in both scenarios.
Does anyone have any clue what this might be caused by?
What I have tried:
The text was updated successfully, but these errors were encountered: