From 7db2b9f030cdf4c6b477f71ccbc27623d515e439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Mon, 10 Feb 2025 19:45:50 +0100 Subject: [PATCH] Improve flake check --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index c01fb66..2530268 100644 --- a/flake.nix +++ b/flake.nix @@ -33,11 +33,12 @@ name = "golangci-lint"; nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.golangci-lint ]; buildPhase = '' - HOME=$TMPDIR golangci-lint run --timeout 360s + HOME=$TMPDIR golangci-lint run --timeout 360s --out-format=junit-xml > lint.xml ''; doCheck = false; installPhase = '' - touch $out $unittest + mkdir -p "$out" + install lint.xml "$out/lint.xml" ''; fixupPhase = ":"; });