diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-06-28 08:30:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 08:30:43 +0200 |
commit | 4f8a04f18062f36a4bbf3cbeb5c7e12bfa8bf1fa (patch) | |
tree | 48cd125daa2a994eba8f4556ea6736de54224bac /pkgs/development/tools/delve | |
parent | 54ae4bde46d0ebeda07c3293febb520d236b59da (diff) | |
parent | 9d09650cef6cf183500d3e4c8ae0356fa0e878e4 (diff) |
Merge pull request #173702 from bdd/go-checkFlags
go-modules/packages: Run unit tests under subdirs
Diffstat (limited to 'pkgs/development/tools/delve')
-rw-r--r-- | pkgs/development/tools/delve/default.nix | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/development/tools/delve/default.nix b/pkgs/development/tools/delve/default.nix index 101449cb80385..27100fe15cc0f 100644 --- a/pkgs/development/tools/delve/default.nix +++ b/pkgs/development/tools/delve/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub, makeWrapper }: +{ lib, buildGoModule, fetchFromGitHub, makeWrapper, stdenv }: buildGoModule rec { pname = "delve"; @@ -17,7 +17,19 @@ buildGoModule rec { nativeBuildInputs = [ makeWrapper ]; - checkFlags = [ "-short" ]; + hardeningDisable = [ "fortify" ]; + + preCheck = '' + XDG_CONFIG_HOME=$(mktemp -d) + ''; + + # Disable tests on Darwin as they require various workarounds. + # + # - Tests requiring local networking fail with or without sandbox, + # even with __darwinAllowLocalNetworking allowed. + # - CGO_FLAGS warnings break tests' expected stdout/stderr outputs. + # - DAP test binaries exit prematurely. + doCheck = !stdenv.isDarwin; postInstall = '' # fortify source breaks build since delve compiles with -O0 |