-
Notifications
You must be signed in to change notification settings - Fork 982
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
commands translate file path from container action #331
Conversation
@@ -1,6 +1,7 @@ | |||
using GitHub.DistributedTask.Pipelines; | |||
using GitHub.DistributedTask.WebApi; | |||
using GitHub.Runner.Common.Util; | |||
using GitHub.Runner.Worker.Container; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
despite the diff, the actual change is pretty small. The diff looks bad due to the signature change of IActionCommandExtension.ProcessCommand()
@@ -84,7 +84,7 @@ public void OnDataReceived(object sender, ProcessDataReceivedEventArgs e) | |||
{ | |||
// This does not need to be inside of a critical section. | |||
// The logging queues and command handlers are thread-safe. | |||
if (_commandManager.TryProcessCommand(_executionContext, line)) | |||
if (_commandManager.TryProcessCommand(_executionContext, line, _container)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OutputManager is the only place that calls commandManager.TryProcessCommand
In the OutputManager ctor, _container is set to "step container ?? job container".
The change here is to pass the correct container for the command manager to use when translating paths.
No description provided.