You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(deps): bump github.com/spf13/pflag from v1.0.10 to v1.1.0 - #4305
Bump github.com/spf13/pflag from v1.0.10 to v1.1.0 and regenerate the CLI reference pages that the upgrade affects.
Why
pflag v1.1.0 (#453) appends [=true|false] directly after Boolean flag names in FlagUsagesWrapped output. This changes the generated CLI help and therefore the checked-in reference under bindings/go/cli/docs/reference/. The dependency-only bump in #4295 left those pages stale, so the Code Generation CI job fails its clean-tree check on 30 reference pages.
This PR keeps the upgrade and runs task generate so the committed reference matches live ocm --help output again.
30 regenerated bindings/go/cli/docs/reference/ocm*.md pages (Boolean flags now render --flag[=true|false], with recalculated column alignment).
Verification
task generate run twice: second run produces no diff and no untracked files (idempotent).
ocm --help and ocm transfer component-version --help match the regenerated pages (--help[=true|false], --version[=true|false], --dry-run[=true|false], --latest[=true|false]).
task bindings/go/cli:test passes, including cmd/generate/docs.
Supersedes #4295 (same bump, plus the required regeneration).
pflag v1.1.0 appends [=true|false] to Boolean flag names in help output,
which changes the generated CLI reference pages. Regenerate them with the
existing task generate to keep CI's clean-tree check green.
Refs: open-component-model#4295
Signed-off-by: Frederic Wilhelm <[email protected]>
Review was skipped as selected files did not have any reviewable changes.
Files ignored due to path filters: 1
bindings/go/go.sum is excluded by !**/*.sum
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 5033ab95-ef46-4abb-81c5-21b753744654
Commits
Reviewing files that changed from the base of the PR and between 0d80995 and 2eb7710.
Files ignored due to path filters: 1
bindings/go/go.sum is excluded by !**/*.sum
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The Go CLI reference documents now show optional boolean values for selected flags. Some option listings also have spacing and alignment updates. The Go module upgrades github.com/spf13/pflag from v1.0.10 to v1.1.0.
Reference entries show optional =true|false syntax for selected flags. Some option listings have spacing or alignment changes. The pflag dependency changes from v1.0.10 to v1.1.0.
This updates a dependency and regenerates CLI reference pages to show optional boolean value syntax. The risk to merging is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: a dependency bump of github.com/spf13/pflag from v1.0.10 to v1.1.0. The changeset matches this. The title is short, specific, and uses the conventional commit form.
Description check
The description states the pflag bump in go.mod and go.sum. It explains why 30 CLI reference pages were regenerated, and it lists the verification steps. This matches the raw summary of the changeset.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
I’m a rabbit, hopping through the flags, I nibble on syntax, then pause to read. True or false now sits beside the options, Neat little columns line up in a row. I twitch my nose at the version bump, Then bound away through the CLI meadow.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 1d75b18f-e13d-4416-9c33-d3af86d14209
Commits
Reviewing files that changed from the base of the PR and between 2fd96b4 and 0d80995.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
## What
Bump `github.com/spf13/pflag` from `v1.0.10` to `v1.1.0` and regenerate
the CLI reference pages that the upgrade affects.
## Why
pflag v1.1.0 ([#453](spf13/pflag#453)) appends
`[=true|false]` directly after Boolean flag names in `FlagUsagesWrapped`
output. This changes the generated CLI help and therefore the checked-in
reference under `bindings/go/cli/docs/reference/`. The dependency-only
bump in #4295 left those pages stale, so the Code Generation CI job
fails its clean-tree check on 30 reference pages.
This PR keeps the upgrade and runs `task generate` so the committed
reference matches live `ocm --help` output again.
## Changes
- `bindings/go/go.mod` / `go.sum`: pflag `v1.0.10` → `v1.1.0`.
- 30 regenerated `bindings/go/cli/docs/reference/ocm*.md` pages (Boolean
flags now render `--flag[=true|false]`, with recalculated column
alignment).
## Verification
- `task generate` run twice: second run produces no diff and no
untracked files (idempotent).
- `ocm --help` and `ocm transfer component-version --help` match the
regenerated pages (`--help[=true|false]`, `--version[=true|false]`,
`--dry-run[=true|false]`, `--latest[=true|false]`).
- `task bindings/go/cli:test` passes, including `cmd/generate/docs`.
Supersedes #4295 (same bump, plus the required regeneration).
Signed-off-by: Frederic Wilhelm <[email protected]> fb01512
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
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.
What
Bump
github.com/spf13/pflagfromv1.0.10tov1.1.0and regenerate the CLI reference pages that the upgrade affects.Why
pflag v1.1.0 (#453) appends
[=true|false]directly after Boolean flag names inFlagUsagesWrappedoutput. This changes the generated CLI help and therefore the checked-in reference underbindings/go/cli/docs/reference/. The dependency-only bump in #4295 left those pages stale, so the Code Generation CI job fails its clean-tree check on 30 reference pages.This PR keeps the upgrade and runs
task generateso the committed reference matches liveocm --helpoutput again.Changes
bindings/go/go.mod/go.sum: pflagv1.0.10→v1.1.0.bindings/go/cli/docs/reference/ocm*.mdpages (Boolean flags now render--flag[=true|false], with recalculated column alignment).Verification
task generaterun twice: second run produces no diff and no untracked files (idempotent).ocm --helpandocm transfer component-version --helpmatch the regenerated pages (--help[=true|false],--version[=true|false],--dry-run[=true|false],--latest[=true|false]).task bindings/go/cli:testpasses, includingcmd/generate/docs.Supersedes #4295 (same bump, plus the required regeneration).