Skip to content

Report _all_ lint failures, and fix the outstanding ones#429

Merged
Luap99 merged 2 commits into
podman-container-tools:mainfrom
mtrmac:lint-all
Nov 3, 2025
Merged

Report _all_ lint failures, and fix the outstanding ones#429
Luap99 merged 2 commits into
podman-container-tools:mainfrom
mtrmac:lint-all

Conversation

@mtrmac

@mtrmac mtrmac commented Oct 31, 2025

Copy link
Copy Markdown
Contributor

Currently, golangci-lint does not report all failures if there are too many, or too many duplicates.

So, e.g. in #425 , we see some failures, fix them ( #427 ) — and then there are more failures to fix.

Avoid that waste by reporting all failures immediately; and fix the outstanding ones.

@TomSweeneyRedHat PTAL

@github-actions github-actions Bot added storage Related to "storage" package common Related to "common" package image Related to "image" package labels Oct 31, 2025
podmanbot pushed a commit to podmanbot/buildah that referenced this pull request Oct 31, 2025
@podmanbot

Copy link
Copy Markdown

✅ A new PR has been created in buildah to vendor these changes: podman-container-tools/buildah#6465

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Otherwise, a CI run reports 3 issues, we fix them, and the
CI run reports _next_ 3 issues. That's a waste of time all around,
and it does not allow judging the scale of the issue.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
podmanbot pushed a commit to podmanbot/buildah that referenced this pull request Oct 31, 2025

@Luap99 Luap99 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread common/.golangci.yml
path: libimage
text: LookupImage

issues:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 I did this in podman a long time ago, no idea why they choose such default really
podman-container-tools/podman@93c35a7

It always just leads to the wrong assumption of let me just fix these three issues really quick.

@Luap99 Luap99 merged commit 844e55d into podman-container-tools:main Nov 3, 2025
37 of 38 checks passed
@mtrmac mtrmac deleted the lint-all branch November 3, 2025 15:53

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
even though I'm a day late and a dollar short for this review.
Thanks @mtrmac !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to "common" package image Related to "image" package storage Related to "storage" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants