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

feat: run golangci-lint during preCheck #149

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brianmcgee
Copy link
Member

No description provided.

@brianmcgee brianmcgee requested a review from Mic92 November 5, 2024 17:10
@@ -62,6 +63,11 @@ in
"-X github.com/numtide/nixos-facter/pkg/build.System=${pkgs.stdenv.hostPlatform.system}"
];

preCheck = ''
HOME=$(mktemp -d)
golangci-lint run
Copy link
Member

@Mic92 Mic92 Nov 5, 2024

Choose a reason for hiding this comment

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

I think we want to move this to another build. If someone pulls the flake with its own nixpkgs override it might fail the build when golangci-lint run adds new lints that we haven't fixed yet. I usually do overrides for this on the original derivation: https://github.com/Mic92/niks3/blob/ba971512979066830868f71010281a44a2654946/nix/checks/flake-module.nix#L20

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.

2 participants