From 416771d4b1f9ccb8a25c4a3fcb5acb5eb15d0436 Mon Sep 17 00:00:00 2001 From: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com> Date: Wed, 22 Jun 2022 15:11:17 +0200 Subject: [PATCH] Fix PrependPath format to be array instead of a concatenated string (#1948) * Fix prependPath format --- .../Container/ContainerHooks/ContainerHookManager.cs | 2 +- src/Runner.Worker/Container/ContainerHooks/HookInput.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs b/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs index d38058e07..cf4bdfa1b 100644 --- a/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs +++ b/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs @@ -101,7 +101,7 @@ namespace GitHub.Runner.Worker.Container.ContainerHooks EntryPointArgs = entryPointArgs.Split(' ').Select(arg => arg.Trim()), EntryPoint = entryPoint, EnvironmentVariables = environmentVariables, - PrependPath = prependPath, + PrependPath = context.Global.PrependPath.Reverse(), WorkingDirectory = workingDirectory, }, State = context.Global.ContainerHookState diff --git a/src/Runner.Worker/Container/ContainerHooks/HookInput.cs b/src/Runner.Worker/Container/ContainerHooks/HookInput.cs index 41d897c55..823a3a882 100644 --- a/src/Runner.Worker/Container/ContainerHooks/HookInput.cs +++ b/src/Runner.Worker/Container/ContainerHooks/HookInput.cs @@ -44,7 +44,7 @@ namespace GitHub.Runner.Worker.Container.ContainerHooks public IEnumerable EntryPointArgs { get; set; } public string EntryPoint { get; set; } public IDictionary EnvironmentVariables { get; set; } - public string PrependPath { get; set; } + public IEnumerable PrependPath { get; set; } public string WorkingDirectory { get; set; } public bool IsRequireAlpineInResponse() => false; }