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

[pre-commit] Add go fmt, go mod tidy & bump versions #9870

Merged
merged 1 commit into from
May 10, 2022

Conversation

easyCZ
Copy link
Member

@easyCZ easyCZ commented May 9, 2022

Description

  • Bumps versions
  • Adds standard go linters

Related Issue(s)

Fixes #

How to test

CI runs

Release Notes

NONE

Documentation

NONE

@easyCZ easyCZ requested review from laushinka and a team May 9, 2022 13:30
@easyCZ easyCZ added the team: webapp Issue belongs to the WebApp team label May 9, 2022
@andrew-farries
Copy link
Contributor

/hold

Comment on lines +43 to +44
- id: go-fmt
- id: go-mod-tidy
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems uncontroversial to me, but this will affect all Go components owned by all teams right? So maybe ask for a wider review?

Copy link
Member Author

Choose a reason for hiding this comment

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

We already validate go mod on CI when we run go mod verify, when verify fails, the fix is to run go mod tidy which this check performs. This change mostly shifts 1 CI run cycle into the workspace so it consumes less CI time (and less time for the engineer).

@easyCZ
Copy link
Member Author

easyCZ commented May 10, 2022

/unhold

@roboquat roboquat merged commit 66d03b3 into main May 10, 2022
@roboquat roboquat deleted the mp/pre-commit-golang branch May 10, 2022 08:13
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/S team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants