Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gofmt/go fix #2120

Merged
merged 2 commits into from
Aug 12, 2024
Merged

gofmt/go fix #2120

merged 2 commits into from
Aug 12, 2024

Conversation

kolyshkin
Copy link
Contributor

  1. Remove old-style build tags

Brought to you by

        go1.23rc2 fix ./...
  1. Use gofmt -s on sources

Brought to you by

        git ls-files \*.go | grep -Ev '/?vendor/' | xargs gofmt -w -s

I thought this should be caught by gofmt/gofumpt linters (that are part
of golangci-lint army) but I guess this did not happen because the
version of golangci-lint is a tad old.

Verified

This commit was signed with the committer’s verified signature.
dunxen dunxen
Brought to you by

	go1.23rc2 fix ./...

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Brought to you by

	git ls-files \*.go | grep -Ev '/?vendor/' | xargs gofmt -w -s

I thought this should be caught by gofmt/gofumpt linters (that are part
of golangci-lint army) but I guess this did not happen because the
version of golangci-lint is a tad old.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@rhatdan
Copy link
Member

rhatdan commented Aug 10, 2024

/approve
LGTM

@mtrmac
Copy link
Contributor

mtrmac commented Aug 10, 2024

I guess this did not happen because the version of golangci-lint is a tad old.

Most repos now have a ~custom setup to have Renovate automatically update. That would, of course, open the can of worms of revisiting which linters to use (and I’m resolutely staying out of that conversation for c/common).

Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Contributor

openshift-ci bot commented Aug 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kolyshkin, Luap99, rhatdan, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 619c68d into containers:main Aug 12, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants