chore: fix pre-commit hook for golangci-lint
1 file changed, 4 insertions(+), 4 deletions(-)
changed files
M flake.nix → flake.nix
@@ -46,9 +46,6 @@ }: { pre-commit = { settings = { - enabledPackages = with pkgs; [ - go - ]; hooks = { go-mod-tidy = { enable = true;@@ -62,7 +59,10 @@ entry = "${pkgs.go}/bin/go mod tidy"; pass_filenames = false; }; golines.enable = true; - golangci-lint.enable = true; + golangci-lint = { + enable = true; + extraPackages = [ pkgs.go ]; + }; gotest.enable = true; gomod2nix = { enable = true;