Add another level to tempBinPath

This commit is contained in:
Michael B. Gale
2023-10-04 20:03:32 +01:00
parent bb70bab648
commit 68d0b65ee5
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ async function run() {
if (fileOutput.includes("statically linked")) {
logger.debug(`Applying static binary workaround for Go`);
// Create a directory that we can add to the system PATH.
const tempBinPath = path.resolve((0, actions_util_1.getTemporaryDirectory)(), "bin");
const tempBinPath = path.resolve((0, actions_util_1.getTemporaryDirectory)(), "codeql-action-go-tracing", "bin");
fs.mkdirSync(tempBinPath, { recursive: true });
core.addPath(tempBinPath);
// Write the wrapper script to the directory we just added to the PATH.
File diff suppressed because one or more lines are too long
+5 -1
View File
@@ -348,7 +348,11 @@ async function run() {
logger.debug(`Applying static binary workaround for Go`);
// Create a directory that we can add to the system PATH.
const tempBinPath = path.resolve(getTemporaryDirectory(), "bin");
const tempBinPath = path.resolve(
getTemporaryDirectory(),
"codeql-action-go-tracing",
"bin",
);
fs.mkdirSync(tempBinPath, { recursive: true });
core.addPath(tempBinPath);