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

ci: run linter on all OSs #548

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Mar 11, 2025

So it turns out that go:build directives are relevant to linting, which makes sense in hindsight as the linter works by compiling the actual code for some lints - this means that in order to lint OS specific files, we need to run the linter on that particular OS.

That's not the end of the world, but I do wish I could come up with a cunning way of somehow reducing the double-up linting violations, but I don't think there's a way to reliably do that without risking missing some files (in theory we could do it with some kind of report merging, but that's not supported by the linter)

@G-Rath G-Rath force-pushed the linting/run-on-os branch from 93bc91f to d139671 Compare March 11, 2025 19:41
@G-Rath G-Rath force-pushed the linting/run-on-os branch from edc3dde to 798caa5 Compare March 12, 2025 17:54
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.

1 participant