Skip to content

fix: pin ODS CLI ref to commit with report command#8

Closed
shenxianpeng wants to merge 1 commit into
mainfrom
bugfix/pin-cli-ref-to-report-commit
Closed

fix: pin ODS CLI ref to commit with report command#8
shenxianpeng wants to merge 1 commit into
mainfrom
bugfix/pin-cli-ref-to-report-commit

Conversation

@shenxianpeng
Copy link
Copy Markdown
Contributor

Problem

The Self Test CI run failed with:

Error: unknown command "report" for "ods"

Root cause: The ODS CLI report command was added in commit b42683670 (2026-05-28T17:19:01Z), but the CI ran at 17:19:36Z — only 35 seconds later. The Go module proxy still served a cached version of main that didn't include the report subcommand.

The latest tag v0.2.0 also predates the report command, so there's no stable tag to pin to.

Fix

  • Pin the default cli-ref in action.yml from main to b42683670
  • Pin the self-test workflow fallback from main to b42683670

The new report command is fully compatible with the action's existing environment variable interface (ODS_REPORT_CHECK, ODS_BRANCH_NAME, etc.) and produces the same output files.

The CI self-test failed because the ODS CLI installed via 'go install' from
'main' did not yet include the 'report' subcommand. The report command was
added in commit b42683670 but the Go module proxy still served a cached
version of main when the CI ran seconds later.

Pin both the action default cli-ref and the self-test workflow fallback to
b42683670 to ensure the report command is always available.
@shenxianpeng shenxianpeng deleted the bugfix/pin-cli-ref-to-report-commit branch May 28, 2026 18:21
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.

1 participant