mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 11:30:43 +00:00
ci(docker): preserve pnpm path in scheduler lanes
(cherry picked from commit 2e8a089836)
This commit is contained in:
@@ -142,10 +142,20 @@ function appendExtension(env, extension) {
|
||||
}
|
||||
|
||||
function commandEnv(extra = {}) {
|
||||
return {
|
||||
const env = {
|
||||
...process.env,
|
||||
...extra,
|
||||
};
|
||||
const pathEntries = [
|
||||
env.PATH,
|
||||
env.PNPM_HOME,
|
||||
env.npm_execpath ? path.dirname(env.npm_execpath) : undefined,
|
||||
path.dirname(process.execPath),
|
||||
]
|
||||
.flatMap((entry) => (entry ? String(entry).split(path.delimiter) : []))
|
||||
.filter(Boolean);
|
||||
env.PATH = [...new Set(pathEntries)].join(path.delimiter);
|
||||
return env;
|
||||
}
|
||||
|
||||
function shellQuote(value) {
|
||||
|
||||
Reference in New Issue
Block a user