Skip to content

chore(deps): bump github.com/spf13/pflag from v1.0.10 to v1.1.0 - #4305

Merged
frewilhelm merged 3 commits into
open-component-model:mainfrom
frewilhelm:chore/bump-pflag-v1.1.0
Nov 16, 2026
Merged

frewilhelm merged 3 commits into
open-component-model:mainfrom
frewilhelm:chore/bump-pflag-v1.1.0

Conversation

@frewilhelm

Copy link
Copy Markdown
Contributor

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) 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).

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]>
@frewilhelm
frewilhelm requested a review from a team as a code owner November 16, 2026 09:27
@netlify

netlify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for ocm-website canceled.

Name Link
🔨 Latest commit 2eb7710
🔍 Latest deploy log https://app.netlify.com/projects/ocm-website/deploys/6afae5c5dc3bd6f136cf895e

@github-actions github-actions Bot added kind/chore chore, maintenance, etc. kind/dependency dependency update, etc. labels Nov 16, 2026
@github-actions github-actions Bot added the size/m Medium label Nov 16, 2026
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

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.

Changes: Go CLI reference updates

Layer / File(s) Summary
Update CLI reference syntax
bindings/go/cli/docs/reference/*, bindings/go/go.mod
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.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: piotrjanik, matthiasbruns, jneisener

Merge Risk: Minimal · previous review 0d809

This updates a dependency and regenerates CLI reference pages to show optional boolean value syntax. The risk to merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

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.

Files ignored due to path filters: 1

  • bindings/go/go.sum is excluded by !**/*.sum
Files selected for processing: 31

  • bindings/go/cli/docs/reference/ocm.md
  • bindings/go/cli/docs/reference/ocm_add.md
  • bindings/go/cli/docs/reference/ocm_add_component-version.md
  • bindings/go/cli/docs/reference/ocm_completion.md
  • bindings/go/cli/docs/reference/ocm_completion_bash.md
  • bindings/go/cli/docs/reference/ocm_completion_fish.md
  • bindings/go/cli/docs/reference/ocm_completion_powershell.md
  • bindings/go/cli/docs/reference/ocm_completion_zsh.md
  • bindings/go/cli/docs/reference/ocm_describe.md
  • bindings/go/cli/docs/reference/ocm_describe_types.md
  • bindings/go/cli/docs/reference/ocm_download.md
  • bindings/go/cli/docs/reference/ocm_download_plugin.md
  • bindings/go/cli/docs/reference/ocm_download_resource.md
  • bindings/go/cli/docs/reference/ocm_generate.md
  • bindings/go/cli/docs/reference/ocm_generate_docs.md
  • bindings/go/cli/docs/reference/ocm_get.md
  • bindings/go/cli/docs/reference/ocm_get_component-version.md
  • bindings/go/cli/docs/reference/ocm_get_config.md
  • bindings/go/cli/docs/reference/ocm_get_types.md
  • bindings/go/cli/docs/reference/ocm_plugin.md
  • bindings/go/cli/docs/reference/ocm_plugin_registry.md
  • bindings/go/cli/docs/reference/ocm_plugin_registry_get.md
  • bindings/go/cli/docs/reference/ocm_plugin_registry_list.md
  • bindings/go/cli/docs/reference/ocm_sign.md
  • bindings/go/cli/docs/reference/ocm_sign_component-version.md
  • bindings/go/cli/docs/reference/ocm_transfer.md
  • bindings/go/cli/docs/reference/ocm_transfer_component-version.md
  • bindings/go/cli/docs/reference/ocm_verify.md
  • bindings/go/cli/docs/reference/ocm_verify_component-version.md
  • bindings/go/cli/docs/reference/ocm_version.md
  • bindings/go/go.mod

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@frewilhelm
frewilhelm enabled auto-merge (squash) November 16, 2026 09:36
@frewilhelm
frewilhelm merged commit fb01512 into open-component-model:main Nov 16, 2026
52 checks passed
ocmbot Bot pushed a commit that referenced this pull request Nov 16, 2026
## 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/chore chore, maintenance, etc. kind/dependency dependency update, etc. size/m Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants