Unverified Commit bde538be authored by IndeedNotJames's avatar IndeedNotJames
Browse files

grafana-agent: remove obsolete test fix in `preBuild` hook

as `node_exporter_test.go` does no longer need access to `/sys`
parent 4b9e3868
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -41,11 +41,6 @@ buildGoModule rec {
  # https://github.com/coreos/go-systemd/issues/351
  env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isLinux [ "-I${lib.getDev systemd}/include" ]);

  # tries to access /sys: https://github.com/grafana/agent/issues/333
  preBuild = ''
    rm pkg/integrations/node_exporter/node_exporter_test.go
  '';

  # go-systemd uses libsystemd under the hood, which does dlopen(libsystemd) at
  # runtime.
  # Add to RUNPATH so it can be found.