diff options
author | Berk D. Demir <bdd@mindcast.org> | 2022-05-01 23:15:08 +0000 |
---|---|---|
committer | Berk D. Demir <bdd@mindcast.org> | 2022-06-01 01:04:17 +0000 |
commit | 032f261fae00459598a7aac3c4893c668c9d41cc (patch) | |
tree | 093be27046a6cc399a1e51fb520afef29ef1407e /pkgs/development/tools/delve | |
parent | 7f2ef311e2e3eb04f127cf0059aa1f2720904c69 (diff) |
delve: Fix tests on Linux, disable tests on Darwin
Bug fixed by #173702 runs the previously skipped tests for this package.
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 635a8aa880641..83ac8ad8198fd 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 |