-
Notifications
You must be signed in to change notification settings - Fork 867
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
let container job handle prepend path correctly. #1977
Conversation
7eb9a74
to
959abc7
Compare
I've built this locally and tested it out. It does not appear to work as intended. I've compared this (v2.142.1) with my existing agents (v2.141.1) and I am seeing the same PATH value within the container. I'm testing additional items out locally though. I may be doing something incorrectly with the built agent though. If there are any recommendations I'm happy to try them out. |
Okay, after some testing I can confirm code as it is now doesn't prepend the path correctly. |
@@ -18,13 +19,37 @@ process.stdin.on('end', function () { | |||
process.env[key] = stdinData.environment[key]; |
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.
This is where the PATH environment variable is being set. Before the prepend logic would be able to take affect.
I'm willing to offer up a pull request to work with you on this @TingluoHuang. I'm thinking of a few options at the moment:
|
@davidroberts63 thanks for testing this. i haven't have time to test this yet. |
Tried to add it as a file here but there were problems so here's a link to it on gist: https://gist.github.com/davidroberts63/84c0381d3dc0f37d8b4566256328e1a1 This is where the PATH env var is being set by the After that is where the prepend logic is running: So the prepend is prepending to an already overwritten Path. |
@davidroberts63 you are not on the right commit. :D |
I can confirm that it does work! That's wonderful. Thank you for your patience in pointing out I had pulled an old commit. And again, thank you for such a quick response @TingluoHuang. |
@davidroberts63 thank you for help me test this out. i will merge the PR. |
No description provided.