build: build golangci-lint with the same go version

This commit is contained in:
Marvin Preuss 2024-09-20 11:03:01 +02:00
parent dc59545cd6
commit d88fecf2ab

View File

@ -10,10 +10,16 @@
let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ ];
overlays = [
(final: prev: {
golangci-lint = prev.golangci-lint.override { buildGo123Module = goBuild; };
})
];
};
caddy-log-exporter = pkgs.buildGo123Module {
goBuild = pkgs.buildGo123Module;
caddy-log-exporter = goBuild {
name = "caddy-log-exporter";
src = ./.;
vendorHash = null;
@ -34,10 +40,7 @@
gh # github commandline tool
go-task
gofumpt
golangci-lint
golines
gopls
skopeo # handling docker images without docker
];
in