Skip to content

Remove deprecated score-compose run command#462

Merged
mathieu-benoit merged 1 commit intomainfrom
copilot/remove-score-compose-run-command
Apr 12, 2026
Merged

Remove deprecated score-compose run command#462
mathieu-benoit merged 1 commit intomainfrom
copilot/remove-score-compose-run-command

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 11, 2026

The score-compose run command has been deprecated in favor of score-compose init + score-compose generate. This PR removes all associated code.

Description

  • Deleted internal/command/run.go and run_test.go
  • Relocated scoreFileDefault constant from run.goinit.go (still referenced there)
  • Relocated executeAndResetCommand test helper from run_test.goroot_test.go (used across all command tests)
  • Updated TestInitNominal in init_test.go: replaced run invocation with generate score.yaml --output -; updated expected output (no auto-published ports — that was run-only deprecated behavior) and state assertions (generate persists workload state, run did not)
  • Updated README.md: removed deprecation note referencing run

What does this PR do?

Cleans up the deprecated run command and all its supporting code, tests, and documentation references.

Types of changes

  • New chore (expected functionality to be implemented)

Checklist:

  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • I've signed off with an email address that matches the commit author.

Agent-Logs-Url: https://github.com/score-spec/score-compose/sessions/07f02e58-63b4-4783-ac8c-ea1315a8329d

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

github-actions Bot commented Apr 11, 2026

Overview

Image reference score-compose:latest score-compose:latest
- digest 5341224c4d0f d0a99baac526
- tag latest latest
- provenance 2452306 497bc20
- vulnerabilities critical: 0 high: 0 medium: 0 low: 0 critical: 0 high: 0 medium: 0 low: 0
- platform linux/amd64 linux/amd64
- size 6.3 MB 6.2 MB (-11 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-20260410133641-245230645018+dirty 0.0.0-20260411193104-497bc2023a0e+dirty

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 aa92490 into main Apr 12, 2026
20 checks passed
@mathieu-benoit mathieu-benoit deleted the copilot/remove-score-compose-run-command branch April 12, 2026 23:26
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