mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-15 13:15:09 +00:00
fix: avoid use '/' on path.join
This commit is contained in:
parent
499093f364
commit
39d3726ca6
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
@ -71299,7 +71299,7 @@ class DotnetCoreInstaller {
|
|||||||
];
|
];
|
||||||
const scriptName = utils_1.IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh';
|
const scriptName = utils_1.IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh';
|
||||||
const escapedScript = path_1.default
|
const escapedScript = path_1.default
|
||||||
.join(__dirname, '../..', 'externals', scriptName)
|
.join(__dirname, '..', '..', 'externals', scriptName)
|
||||||
.replace(/'/g, "''");
|
.replace(/'/g, "''");
|
||||||
let scriptArguments;
|
let scriptArguments;
|
||||||
let scriptPath = '';
|
let scriptPath = '';
|
||||||
@ -71505,7 +71505,7 @@ function run() {
|
|||||||
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
||||||
yield (0, cache_restore_1.restoreCache)(cacheDependencyPath);
|
yield (0, cache_restore_1.restoreCache)(cacheDependencyPath);
|
||||||
}
|
}
|
||||||
const matchersPath = path_1.default.join(__dirname, '../..', '.github');
|
const matchersPath = path_1.default.join(__dirname, '..', '..', '.github');
|
||||||
core.info(`##[add-matcher]${path_1.default.join(matchersPath, 'csc.json')}`);
|
core.info(`##[add-matcher]${path_1.default.join(matchersPath, 'csc.json')}`);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
@ -188,7 +188,7 @@ export class DotnetCoreInstaller {
|
|||||||
];
|
];
|
||||||
const scriptName = IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh';
|
const scriptName = IS_WINDOWS ? 'install-dotnet.ps1' : 'install-dotnet.sh';
|
||||||
const escapedScript = path
|
const escapedScript = path
|
||||||
.join(__dirname, '../..', 'externals', scriptName)
|
.join(__dirname, '..', '..', 'externals', scriptName)
|
||||||
.replace(/'/g, "''");
|
.replace(/'/g, "''");
|
||||||
let scriptArguments: string[];
|
let scriptArguments: string[];
|
||||||
let scriptPath = '';
|
let scriptPath = '';
|
||||||
|
@ -100,7 +100,7 @@ export async function run() {
|
|||||||
await restoreCache(cacheDependencyPath);
|
await restoreCache(cacheDependencyPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
const matchersPath = path.join(__dirname, '../..', '.github');
|
const matchersPath = path.join(__dirname, '..', '..', '.github');
|
||||||
core.info(`##[add-matcher]${path.join(matchersPath, 'csc.json')}`);
|
core.info(`##[add-matcher]${path.join(matchersPath, 'csc.json')}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user