Skip to content

feat: add version command and improve --version output#467

Merged
mathieu-benoit merged 3 commits into
mainfrom
copilot/apply-feature-from-implementation-sample
Apr 16, 2026
Merged

feat: add version command and improve --version output#467
mathieu-benoit merged 3 commits into
mainfrom
copilot/apply-feature-from-implementation-sample

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 15, 2026

Like done there score-spec/score-implementation-sample#93, fix and improve --version and add new version command.

Update for score-compose --version:

  • Before
score-compose 0.30.0 (build: 2026-01-01T18:28:02Z, sha: 2b994a35d0593c66f908135d5c321b0fd4d5c553-dirty)
  • Before with the container image (docker run --rm -it scorespec/score-compose:latest --version):
score-compose 0.30.0 (build: local, sha: unknown)
  • After:
score-compose 0.30.0 (go1.26.1 - linux/amd64)
git commit: 2b994a35d0593c66f908135d5c321b0fd4d5c553
build date: 2026-01-01T18:28:02Z

Note: we can see that the -dirty suffix of the git commit/sha is fixed and that we are also adding more insightful information like the runtime version and platform. The build and git commit/sha are also now fixed when running the container image.

New score-compose version command:


                   ...    .............           
               .......   .............            
           .........     ............             
       .........        .....                     
      .......           ....   ..                 
       ..........      .....   ......             
           ........   ......   ..........         
              .....   .....       ..........      
                      ....          ........      
              ...........       .........         
           ..............    .........            
         ................   ......                
         ...............    ..                    
          ............

score-compose 0.30.0 (go1.26.1 - linux/amd64)
git commit: 2b994a35d0593c66f908135d5c321b0fd4d5c553
build date: 2026-01-01T18:28:02Z

A newer version is available: v0.3.0
Update at: https://github.com/score-spec/score-compose/releases/tag/v0.3.0

Note: we can see that this new command version generating the same output as --version, and add the Score logo (which can be disabled with --no-logo), and the versions update check (which can be disabled with --no-updates-check).

Agent-Logs-Url: https://github.com/score-spec/score-compose/sessions/045520ab-1cd7-4aa8-a45a-86c61f9fb763

Co-authored-by: mathieu-benoit <11720844+mathieu-benoit@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 15, 2026

Overview

Image reference score-compose:latest score-compose:latest
- digest 4660e962c83b cbe4a5710a3b
- tag latest latest
- provenance f0efa42 e47af05
- vulnerabilities critical: 0 high: 0 medium: 0 low: 0 critical: 0 high: 0 medium: 0 low: 0
- platform linux/amd64 linux/amd64
- size 6.2 MB 6.2 MB (-3.8 kB)
- packages 54 54
Policies (0 improved, 0 worsened)
Policy Name score-compose:latest score-compose:latest Change Standing
Default non-root user No Change
No AGPL v3 licenses No Change
No fixable critical or high vulnerabilities No Change
No high-profile vulnerabilities No Change
No outdated base images No Change
No unapproved base images No Change
Supply chain attestations No Change
Valid Docker Hardened Image (DHI) or DHI base image ⚠️ 2 ⚠️ 2 No Change
Packages and Vulnerabilities (1 package changes and 0 vulnerability changes)
  • ♾️ 1 packages changed
  • 53 packages unchanged
Changes for packages of type golang (1 changes)
Package Version
score-compose:latest
Version
score-compose:latest
♾️ github.com/score-spec/score-compose 0.0.0-20260415110835-f0efa4287439+dirty 0.0.0-20260416002040-e47af05e8a44+dirty

…tainer image build

Agent-Logs-Url: https://github.com/score-spec/score-compose/sessions/d6ae2ca9-b260-4789-9bf3-7fcde747f285

Co-authored-by: mathieu-benoit <11720844+mathieu-benoit@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@mathieu-benoit mathieu-benoit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mathieu-benoit mathieu-benoit merged commit c00e054 into main Apr 16, 2026
14 checks passed
@mathieu-benoit mathieu-benoit deleted the copilot/apply-feature-from-implementation-sample branch April 16, 2026 01:00
@mathieu-benoit
Copy link
Copy Markdown
Contributor

mathieu-benoit commented Apr 16, 2026

Now included in this release https://github.com/score-spec/score-compose/releases/tag/0.37.0.

docker run --rm -it scorespec/score-compose:0.37.0 version:

                   ...    .............
               .......   .............
           .........     ............
       .........        .....
      .......           ....   ..
       ..........      .....   ......
           ........   ......   ..........
              .....   .....       ..........
                      ....          ........
              ...........       .........
           ..............    .........
         ................   ......
         ...............    ..
          ............

score-compose 0.37.0 (go1.26.2 - linux/amd64)
git commit: c00e054671657549bd1878afb21d8e5378d117fe
build date: 2026-04-15T21:00:38-04:00

@mathieu-benoit
Copy link
Copy Markdown
Contributor

FYI: associated docs now updated score-spec/docs#277

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants