-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Check that version number is corectly embedded in the binary #7092
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7092 +/- ##
==========================================
- Coverage 96.14% 96.11% -0.03%
==========================================
Files 358 358
Lines 21584 21584
==========================================
- Hits 20752 20746 -6
- Misses 627 631 +4
- Partials 205 207 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
yurishkuro
commented
May 2, 2025
Signed-off-by: Yuri Shkuro <[email protected]>
mahadzaryab1
approved these changes
May 3, 2025
amilbcahat
pushed a commit
to amilbcahat/jaeger
that referenced
this pull request
May 4, 2025
…racing#7092) ## Which problem is this PR solving? - Resolves jaegertracing#7090 ## Description of the changes - Add validation to the build step that the version number is correctly embedded in the binary ## How was this change tested? - When reverting the fix done in jaegertracing#6990 the build fails: ``` $ make build-jaeger echo "building binary for $(go env GOOS)-$(go env GOARCH)"; CGO_ENABLED=0 installsuffix=cgo go build -trimpath -o ./cmd/jaeger/jaeger-darwin-arm64 -ldflags "-X github.com/jaegertracing/jaeger/pkg/version.commitSHA=687207be86edb688436f8ef6c4383968a0ec1855 -X github.com/jaegertracing/jaeger/pkg/version.latestVersion=v2.5.0 -X github.com/jaegertracing/jaeger/pkg/version.date=2025-05-02T18:47:48Z" ./cmd/jaeger building binary for darwin-arm64 ❌ ERROR: version mismatch: want=v2.5.0, have= make: *** [build-jaeger] Error 1 ``` --------- Signed-off-by: Yuri Shkuro <[email protected]>
amilbcahat
pushed a commit
to amilbcahat/jaeger
that referenced
this pull request
May 4, 2025
…racing#7092) ## Which problem is this PR solving? - Resolves jaegertracing#7090 ## Description of the changes - Add validation to the build step that the version number is correctly embedded in the binary ## How was this change tested? - When reverting the fix done in jaegertracing#6990 the build fails: ``` $ make build-jaeger echo "building binary for $(go env GOOS)-$(go env GOARCH)"; CGO_ENABLED=0 installsuffix=cgo go build -trimpath -o ./cmd/jaeger/jaeger-darwin-arm64 -ldflags "-X github.com/jaegertracing/jaeger/pkg/version.commitSHA=687207be86edb688436f8ef6c4383968a0ec1855 -X github.com/jaegertracing/jaeger/pkg/version.latestVersion=v2.5.0 -X github.com/jaegertracing/jaeger/pkg/version.date=2025-05-02T18:47:48Z" ./cmd/jaeger building binary for darwin-arm64 ❌ ERROR: version mismatch: want=v2.5.0, have= make: *** [build-jaeger] Error 1 ``` --------- Signed-off-by: Yuri Shkuro <[email protected]> Signed-off-by: amol-verma-allen <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which problem is this PR solving?
Description of the changes
How was this change tested?