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:
parent
4b9e3868eb
commit
bde538be9f
|
@ -41,11 +41,6 @@ buildGoModule rec {
|
||||||
# https://github.com/coreos/go-systemd/issues/351
|
# https://github.com/coreos/go-systemd/issues/351
|
||||||
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isLinux [ "-I${lib.getDev systemd}/include" ]);
|
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
|
# go-systemd uses libsystemd under the hood, which does dlopen(libsystemd) at
|
||||||
# runtime.
|
# runtime.
|
||||||
# Add to RUNPATH so it can be found.
|
# Add to RUNPATH so it can be found.
|
||||||
|
|
Loading…
Reference in a new issue