Skip to content

Commit

Permalink
part ways with leaveDotGit
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo authored and cole-h committed Nov 23, 2022
1 parent 4415bad commit f9cdaba
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions pkgs/tools/security/zlint/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ lib
, buildGoModule
, fetchFromGitHub
, git
, testers
, zlint
}:
Expand All @@ -14,8 +13,7 @@ buildGoModule rec {
owner = "zmap";
repo = "zlint";
rev = "v${version}";
leaveDotGit = true;
hash = "sha256-1T8WAWsivSEB2xVEM+GpWJuD3DGXPa9uNpuN6/ABsns=";
hash = "sha256-l39GdfEKUAw5DQNjx6ZBgfGtengRlUUasm0G07kAA2A=";
};

modRoot = "v3";
Expand All @@ -38,12 +36,8 @@ buildGoModule rec {
"-X main.version=${version}"
];

checkInputs = [ git ];

preCheck = ''
# Test all targets.
unset subPackages
'';
# Checks rely on .git directory, leaveDotGit makes the source derivation flaky.
doCheck = false;

passthru.tests.version = testers.testVersion {
package = zlint;
Expand Down

0 comments on commit f9cdaba

Please sign in to comment.