-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Wrong version reported after building Telegraf #4516
Comments
These values are normally set in
You might also want to add
|
I misunderstood this initially, if you don't set a version then you get the last major version (set in cmd/telegraf/telegraf.go). I believe this is used in the nightly builds to set the version. I'm going to reopen and will have it set no version if non is explicitly specified. |
Oh I see the lines now in Am I correct that my script above will be compiling a version |
You are building it correctly for 1.7.2, just make sure to add the appropriate linker flags to get the version string. We'll fix this in 1.8 with #4521. |
Steps to reproduce:
Expected behavior:
To see
Telegraf v1.7.2~unknown (git: unknown unknown)
Actual behavior:
I see
Telegraf v1.7.0~unknown (git: unknown unknown)
The text was updated successfully, but these errors were encountered: