Improve flake check
This commit is contained in:
parent
121cd68c81
commit
7db2b9f030
@ -33,11 +33,12 @@
|
|||||||
name = "golangci-lint";
|
name = "golangci-lint";
|
||||||
nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.golangci-lint ];
|
nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.golangci-lint ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
HOME=$TMPDIR golangci-lint run --timeout 360s
|
HOME=$TMPDIR golangci-lint run --timeout 360s --out-format=junit-xml > lint.xml
|
||||||
'';
|
'';
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
touch $out $unittest
|
mkdir -p "$out"
|
||||||
|
install lint.xml "$out/lint.xml"
|
||||||
'';
|
'';
|
||||||
fixupPhase = ":";
|
fixupPhase = ":";
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user