tests.fetchgit.fetchTags: fix flaky test by removing .git directory after getting tags (#413311)

authored by philiptaron.tngl.sh and committed by

GitHub b589370d d0593dc9

+3 -1
+3 -1
pkgs/build-support/fetchgit/tests.nix
··· 90 90 rev = "9d9dbe6ed05854e03811c361a3380e09183f4f4a"; 91 91 fetchTags = true; 92 92 leaveDotGit = true; 93 - sha256 = "sha256-2vfZnYjZlnC8ODz6B6aOqAqtb1Wbjojnn/5TmzwUrmo="; 93 + sha256 = "sha256-y7l+46lVP2pzJwGON5qEV0EoxWofRoWAym5q9VXvpc8="; 94 94 postFetch = '' 95 95 cd $out && git describe --tags --always > describe-output.txt 2>&1 || echo "git describe failed" > describe-output.txt 96 + # See https://github.com/NixOS/nixpkgs/issues/412967#issuecomment-2927452118 97 + rm -rf .git 96 98 ''; 97 99 }; 98 100 }