feat: add version command and improve --version output#67
Merged
Conversation
Agent-Logs-Url: https://github.com/score-spec/score-radius/sessions/25c2e4ad-1642-4fd7-a47c-f7639b7a6c41 Co-authored-by: mathieu-benoit <11720844+mathieu-benoit@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
mathieu-benoit
April 16, 2026 01:25
View session
Overview
Policies (0 improved, 0 worsened)
Packages and Vulnerabilities (1 package changes and 0 vulnerability changes)
Changes for packages of type
|
| Package | Versionscore-radius:latest |
Versionscore-radius:latest |
|
|---|---|---|---|
| ♾️ | github.com/score-spec/score-radius | 0.0.0-20260412231134-ec5e0f27c33f+dirty |
0.0.12-0.20260416012536-ae3ef98ad1ab+dirty |
Contributor
|
FYI: docs now updated #73 |
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
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.
Adapts the feature from score-compose#467 to score-radius: improves
--versionoutput and adds a newversionsubcommand.Changes
internal/version/version.go: Dropdebug.ReadBuildInfoin favour of build-time ldflags; addGitCommitandBuildDatevars. New format:internal/command/root.go: IntroduceScoreImplementationNameconstant; set a custom cobra version template (removes the defaultversionword from output).internal/command/version.go: Newscore-radius versionsubcommand — prints Score ASCII logo, version info, and checks GitHub releases for a newer version. Flags:--no-logo,--no-updates-check..goreleaser.yaml: InjectGitCommitandBuildDatevia ldflags at release build time.Dockerfile: AcceptGIT_COMMIT/BUILD_DATEbuild ARGs and pass them as ldflags so container image builds report accurate metadata (previously showedbuild: local, sha: unknown)..github/workflows/release.yaml: ForwardGIT_COMMITandBUILD_DATEas Docker build-args.root_test.go: AddTestRootVersionasserting the new output format.