This commit is contained in:
Reinier Criel 2025-12-17 11:37:51 +01:00
parent 9db8a2cc24
commit 3c18ad76f7
2 changed files with 31 additions and 0 deletions

View file

@ -157,6 +157,14 @@ function modifyPathForCi(shimsDir, binDir) {
ui.writeInformation("##vso[task.prependpath]" + shimsDir);
ui.writeInformation("##vso[task.prependpath]" + binDir);
}
if (process.env.BASH_ENV) {
// In CircleCI, persisting PATH across steps is done by appending shell exports
// to the file referenced by BASH_ENV. CircleCI sources this file for each step.
const exportLine = `export PATH=\"${shimsDir}:${binDir}:$PATH\"` + os.EOL;
fs.appendFileSync(process.env.BASH_ENV, exportLine, "utf-8");
ui.writeInformation(`Added shims directory to BASH_ENV for CircleCI.`);
}
}
function getToolsToSetup() {