From 2f8de5b0dbc7ba309dba56e1d8fa08e9d41c1b4a Mon Sep 17 00:00:00 2001 From: r-vdp Date: Mon, 9 Dec 2024 15:48:03 +0100 Subject: [PATCH] github-runner: fix wrong path in the config file At runtime, we currently have errors like this: ``` Dec 09 13:58:02 ci1 dwx059sqrz6hh2v1ml8y70a22pkhaxdb-github-runner-12-unregister-runner.sh[2571025]: ldd: /nix/store/7zskpnpyzivfzkzz861bf8mmqm36qv6y-dotnet-runtime-wrapped-8.0.11/shared/Microsoft.NETCore.App/8.0.11//libcoreclr.so: No such file or directory Dec 09 13:58:03 ci1 fgpf4l2h5daz7yb663y0vs8f397ydwmz-github-runner-12-configure.sh[2571116]: ldd: /nix/store/7zskpnpyzivfzkzz861bf8mmqm36qv6y-dotnet-runtime-wrapped-8.0.11/shared/Microsoft.NETCore.App/8.0.11//libcoreclr.so: No such file or directory ``` --- pkgs/by-name/gi/github-runner/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/gi/github-runner/package.nix b/pkgs/by-name/gi/github-runner/package.nix index 8e961ec2bd58..96826704e00c 100644 --- a/pkgs/by-name/gi/github-runner/package.nix +++ b/pkgs/by-name/gi/github-runner/package.nix @@ -243,7 +243,7 @@ buildDotnetModule rec { + lib.optionalString stdenv.hostPlatform.isLinux '' substituteInPlace $out/lib/github-runner/config.sh \ --replace 'command -v ldd' 'command -v ${glibc.bin}/bin/ldd' \ - --replace 'ldd ./bin' '${glibc.bin}/bin/ldd ${dotnet-runtime}/shared/Microsoft.NETCore.App/${dotnet-runtime.version}/' \ + --replace 'ldd ./bin' '${glibc.bin}/bin/ldd ${dotnet-runtime}/share/dotnet/shared/Microsoft.NETCore.App/${dotnet-runtime.version}/' \ --replace '/sbin/ldconfig' '${glibc.bin}/bin/ldconfig' '' + ''