Skip to content

Commit

Permalink
nix: add golangci-lint to checks
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Jan 5, 2024
1 parent 2b5a965 commit 3a0dc74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

checks = {
formatting = treefmtEval.config.build.check self;
inherit (self.packages.${system}) golangci-lint;
};

legacyPackages = pkgs;
Expand Down
6 changes: 6 additions & 0 deletions packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,10 @@ rec {
runtimeInputs = [ go pkgs.govulncheck ];
text = ''govulncheck "$@"'';
};

golangci-lint = writeShellApplication {
name = "golangci-lint";
runtimeInputs = [ go pkgs.golangci-lint ];
text = ''golangci-lint "$@"'';
};
}

0 comments on commit 3a0dc74

Please sign in to comment.