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

workflows: switch to org-wide golangci-lint job #184

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Conversation

roman-khimov
Copy link
Member

No description provided.

config/main.go:193      gofmt  File is not `gofmt`-ed with `-s` `-r 'interface{} -> any'`
internal/client.go:169  gofmt  File is not `gofmt`-ed with `-s` `-r 'interface{} -> any'`

Signed-off-by: Roman Khimov <[email protected]>
@roman-khimov roman-khimov force-pushed the new-golangci branch 2 times, most recently from 1fda964 to 7871491 Compare September 9, 2024 18:16
@@ -1,73 +0,0 @@
# This file contains all available configuration options
# with their default values.
Copy link
Member Author

Choose a reason for hiding this comment

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

One thing that bugs me is that this can affect local linter runs.

Copy link
Member Author

Choose a reason for hiding this comment

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

A make target to download it from .github can be added.

Copy link
Member

Choose a reason for hiding this comment

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

It should be updated manually if any changes are included into .github's config. Other than that it works OK on my machine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, the only other way to sync is submodules, but it's so inconvenient (especially the need to bump them).

Copy link
Member Author

Choose a reason for hiding this comment

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

I think the main thing is that we're still guarded by GH linter job, so if local config is out of sync we'll still see linter job failure and it should be sufficient.

Copy link
Member

Choose a reason for hiding this comment

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

Let’s keep the current way, it’s good.

@roman-khimov roman-khimov marked this pull request as ready for review September 9, 2024 18:18
Fetch it when needed for local runs.

Signed-off-by: Roman Khimov <[email protected]>
@roman-khimov roman-khimov merged commit ef2e86b into master Sep 10, 2024
8 checks passed
@roman-khimov roman-khimov deleted the new-golangci branch September 10, 2024 12:13
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.

3 participants