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

Reformat go code #290

Merged
merged 1 commit into from Apr 14, 2023
Merged

Conversation

gkurz
Copy link
Member

@gkurz gkurz commented Apr 13, 2023

Most target in the makefile, e.g. 'make test' or 'make build', internally invoke 'make fmt' which reformats all the go code.

Despite of that, badly formatted go code landed in the repo. This causes unrelated changes to appear in local repos during regular development. This is quite irritating for picky(?) people who don't want to push alien changes in their PRs.

A long term solution would be that the gating CI catches those nits upfront. They are a variety of solutions available to developers to run 'go fmt' in their environement before pushing changes.

In the meantime, fix the current code base. This obviously doesn't change any behavior.

No testing required.

Most target in the makefile, e.g. 'make test' or 'make build', internally
invoke 'make fmt' which reformats all the go code.

Despite of that, badly formatted go code landed in the repo. This causes
unrelated changes to appear in local repos during regular development.
This is quite irritating for picky(?) people who don't want to push alien
changes in their PRs.

A long term solution would be that the gating CI catch these nits upfront.
They are a variety of solutions available to developers to run 'go fmt'
in their environement before pushing code.

In the meantime, fix the current code base. This obviously doesn't
change any behavior.

Signed-off-by: Greg Kurz <groug@kaod.org>
Copy link
Contributor

@littlejawa littlejawa left a comment

Choose a reason for hiding this comment

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

lgtm
Thanks @gkurz !

@gkurz gkurz merged commit f382f2a into openshift:peer-pods-tech-preview Apr 14, 2023
@gkurz gkurz mentioned this pull request May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants