diff --git a/pkgs/tools/misc/opentelemetry-collector/contrib.nix b/pkgs/tools/misc/opentelemetry-collector/contrib.nix index 7668bf0a8daa..bad1051fcc64 100644 --- a/pkgs/tools/misc/opentelemetry-collector/contrib.nix +++ b/pkgs/tools/misc/opentelemetry-collector/contrib.nix @@ -39,14 +39,7 @@ buildGoModule rec { # it instead of trusting the global $PATH. propagatedBuildInputs = lib.optionals withSystemd [ systemdMinimal ]; - preCheck = "export CGO_ENABLED=1"; - - checkFlags = [ - # collectd test tries and fails to bind to port 8081 - # mezo test tries to reach external service - # memory_ballast test fails on darwin for mysterious reasons. - "-skip=TestDefaultReceivers/collectd|TestDefaultExporters/mezmo${lib.optionalString stdenv.isDarwin "|TestDefaultExtensions/memory_ballast"}" - ]; + doCheck = false; ldflags = [ "-s"