Add another level to tempBinPath
This commit is contained in:
parent
bb70bab648
commit
68d0b65ee5
3 changed files with 7 additions and 3 deletions
2
lib/init-action.js
generated
2
lib/init-action.js
generated
|
|
@ -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
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue