fix: pin ODS CLI ref to commit with report command#8
Closed
shenxianpeng wants to merge 1 commit into
Closed
Conversation
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.
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.
Problem
The Self Test CI run failed with:
Root cause: The ODS CLI
reportcommand was added in commitb42683670(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 ofmainthat didn't include thereportsubcommand.The latest tag
v0.2.0also predates thereportcommand, so there's no stable tag to pin to.Fix
cli-refinaction.ymlfrommaintob42683670maintob42683670The new
reportcommand is fully compatible with the action's existing environment variable interface (ODS_REPORT_CHECK,ODS_BRANCH_NAME, etc.) and produces the same output files.