feat: add version command and improve --version output#296
Merged
mathieu-benoit merged 1 commit intomainfrom Apr 16, 2026
Merged
feat: add version command and improve --version output#296mathieu-benoit merged 1 commit intomainfrom
version command and improve --version output#296mathieu-benoit merged 1 commit intomainfrom
Conversation
Agent-Logs-Url: https://github.com/score-spec/score-k8s/sessions/121099cf-86ba-4cca-a966-aa8b08ba8154 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
Contributor
Overview
Policies (0 improved, 0 worsened)
Packages and Vulnerabilities (1 package changes and 0 vulnerability changes)
Changes for packages of type
|
| Package | Versionscore-k8s:latest |
Versionscore-k8s:latest |
|
|---|---|---|---|
| ♾️ | github.com/score-spec/score-k8s | 0.0.0-20260415141349-3c8f3a536dbf+dirty |
0.0.0-20260416012532-a6ba66b29c4d+dirty |
Contributor
|
Now included in this release https://github.com/score-spec/score-k8s/releases/tag/0.11.0.
|
Contributor
|
FYI: associated docs now updated score-spec/docs#277 |
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.
Ports the same feature from score-compose#467 to score-k8s.
Description
Improves version output and adds a new
versionsubcommand with Score logo and update check.--versionoutput — before:--versionoutput — after:New
score-k8s versioncommand:What does this PR do?
internal/version/version.go: Replacesdebug.ReadBuildInfo()with injectedGitCommit/BuildDateldflags +runtime.GOOS/runtime.GOARCH. Fixes-dirtysuffix issue and broken version info in container images.internal/command/version.go(new):versionsubcommand with Score logo (--no-logo), version string, and GitHub releases update check (--no-updates-check).internal/command/root.go: ExportsScoreImplementationName = "score-k8s"for reuse; updates version template..goreleaser.yaml: InjectsGitCommit/BuildDateat release build time.Dockerfile: AddsGIT_COMMIT/BUILD_DATEbuild args and passes them as ldflags..github/workflows/release.yaml: Passesgithub.shaandgithub.event.head_commit.timestampasGIT_COMMIT/BUILD_DATEbuild-args.Types of changes
Checklist: