[bug]: lint fails on main, generated CLI docs out of date

Open Beginner friendly
#1,180 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@bupd is already working on this.

Since Nov 24, 2026.

  • #1181 by @bupd — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
documentation

Research direction

Start with doc/cli-docs/harbor-context-switch.md, then read doc/doc.go to see how the generator emits the trailing blank line. Run the documentation regeneration used by the lint job's "Check for changes" step, or the relevant doc target, and confirm the regenerated file matches the checked-in copy. Done means regenerating docs produces no diff and the lint job passes.

Written by the indexing model from the issue text.

Description

bug documentation

doc/cli-docs/harbor-context-switch.md no longer matches the generator output. Commit 5547ebcf (#1073) edited it by hand and dropped the trailing blank line that doc/doc.go emits.

The lint job's "Check for changes" step regenerates docs and fails on the diff, so every PR against main fails lint (see main run 45465432070).

Dominant language
Go
Stars
167
Forks
219
Avg merge
12h 53m
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from goharbor/harbor-cli

All issues in goharbor/harbor-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.