grafana-agent: remove obsolete test fix in preBuild hook

as `node_exporter_test.go` does no longer need access to `/sys`
This commit is contained in:
IndeedNotJames 2023-04-13 10:43:02 +02:00
parent 4b9e3868eb
commit bde538be9f
No known key found for this signature in database
GPG key ID: 0AD773CE46FD0F87

View file

@ -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.