build: build golangci-lint with the same go version
This commit is contained in:
parent
dc59545cd6
commit
d88fecf2ab
13
flake.nix
13
flake.nix
@ -10,10 +10,16 @@
|
|||||||
let
|
let
|
||||||
pkgs = import inputs.nixpkgs {
|
pkgs = import inputs.nixpkgs {
|
||||||
inherit system;
|
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";
|
name = "caddy-log-exporter";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
vendorHash = null;
|
vendorHash = null;
|
||||||
@ -34,10 +40,7 @@
|
|||||||
|
|
||||||
gh # github commandline tool
|
gh # github commandline tool
|
||||||
go-task
|
go-task
|
||||||
gofumpt
|
|
||||||
golangci-lint
|
golangci-lint
|
||||||
golines
|
|
||||||
gopls
|
|
||||||
skopeo # handling docker images without docker
|
skopeo # handling docker images without docker
|
||||||
];
|
];
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user