You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jackgopack4
changed the title
OCB no longer reports version on command line
OCB v0.107.0 and onward no longer report version on command line
Sep 19, 2024
Revert "[chore] delete code to set a version and date, as it it not used
(#10715)"
Remove date string but re-add functions that check for version number
This (mostly) reverts commit b53f57d.
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This re-enables the functionality to set a version number for ocb binary
(cmd/builder). It was erroneously removed. It also adds unit tests for
this functionality, as a warning is given on CI with no code coverage.
<!-- Issue number if applicable -->
#### Link to tracking issue
Relates to
open-telemetry/opentelemetry-collector-releases#664.
Closes#11220 along with
open-telemetry/opentelemetry-collector-releases#665
<!--Describe what testing was performed and which tests were added.-->
#### Testing
ran build and release cycles inside personal fork repositories
(jackgopack4/opentelemetry-collector and
jackgopack4/opentelemetry-collector-releases)
<!--Describe the documentation added.-->
#### Documentation
.chloggen file
<!--Please delete paragraphs that you did not use before submitting.-->
Describe the bug
ocb from v0.107.0 onward reports "devel" as version when running on CLI instead of version number. Confirmed to work in v106.1 and earlier
Steps to reproduce
Download any ocb binary v0.107.0 or later and run
ocb version
What did you expect to see?
expect to see
ocb version vX.XXX.X
What did you see instead?
instead see `ocb version (devel)
What version did you use?
v0.107.0, v0.108.0, v0.109.0
What config did you use?
n/a
Environment
darwin/arm64, downloaded ocb binary
Additional context
reported in releases repo open-telemetry/opentelemetry-collector-releases#664
PR to re-add code and add unit tests that was removed and causes cli to not report proper build version.
Also requires adding flag in build process, PR open in releases: open-telemetry/opentelemetry-collector-releases#665
The text was updated successfully, but these errors were encountered: