Skip to content

CI: lint job in the workflow failing #892

@vg006

Description

@vg006

Overview

I noticed the failure of the lint job, at the Check for changes step, with the following messages printed as the output.

file changes found
please check if docs were added for new commands or updated for new commands
doc/cli-docs/harbor-repo-update.md
doc/man-docs/man1/harbor-repo-update.1
Error: Process completed with exit code 1.

But, my PR doesn't contain any changes related to the doc files listed above. And here's the proof.

❯ git diff --name-status HEAD..main
D       pkg/errors/errors.go
D       pkg/errors/errors_test.go
D       pkg/errors/utils.go
M       pkg/views/styles.go
❯ set ch = $(git ls-files --others --modified --deleted --exclude-standard)
❯ echo $ch | rg 'harbor-repo'

Steps to reproduce

  1. Sync the local main branch with the upstream.
  2. Rebase the branch that you are working on the main.
  3. Push the changes to update the remote.
  4. See the errors thrown by the lint job at the specified step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions