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

Document running golangci-lint and make it work on arm64 #12339

Merged
merged 3 commits into from
May 24, 2024

Conversation

mickael-carl
Copy link
Contributor

While opening a different PR, I noticed that while the contributing guidelines do mention golangci-lint, there aren't instructions on how to run it. When running the Makefile target for it on an arm64 machine, it will immediately exits due to arm64 being missing from the list of supported architecture.

Also removing some targets (precheck, common-staticcheck) that aren't in use anymore in any repo in the prometheus or prometheus-community orgs.

Copy link
Member

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

Thanks for doing this. I had a couple of points.

CONTRIBUTING.md Outdated Show resolved Hide resolved
Makefile.common Outdated Show resolved Hide resolved
@mickael-carl
Copy link
Contributor Author

Force-pushed to trigger the CI. Might have not run because of this Github incident.

Makefile.common Outdated Show resolved Hide resolved
Makefile.common Outdated Show resolved Hide resolved
Makefile.common Outdated Show resolved Hide resolved
Makefile.common Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
@roidelapluie roidelapluie self-assigned this Jun 27, 2023
@roidelapluie
Copy link
Member

I would still keep the unused targets for now and keep backwards compat

@roidelapluie
Copy link
Member

We have looked at this pull request during our bug scrub.

Are you willing to continue to work on this? There is also a conflict on Makefile.common.

Thank you for your contribution.

Signed-off-by: Mickael Carl <mcarl@apple.com>
Signed-off-by: Mickael Carl <mcarl@apple.com>
@mickael-carl
Copy link
Contributor Author

@roidelapluie I've updated this now, limiting the change to only the required to get linting to work on arm64 + doc change. That should solve your concerns with the various removal I had in.

Signed-off-by: Julien <291750+roidelapluie@users.noreply.github.com>
@roidelapluie roidelapluie merged commit a895265 into prometheus:main May 24, 2024
22 checks passed
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