chore: remove path sep conversion

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-02-19 00:59:04 +01:00
parent 2038d87306
commit ed087e5b0d
10 changed files with 22 additions and 22 deletions

View File

@@ -29,11 +29,11 @@ export class Inputs {
}
public getBuildImageIDFilePath(): string {
return path.join(this.context.tmpDir(), 'iidfile').split(path.sep).join(path.posix.sep);
return path.join(this.context.tmpDir(), 'iidfile');
}
public getBuildMetadataFilePath(): string {
return path.join(this.context.tmpDir(), 'metadata-file').split(path.sep).join(path.posix.sep);
return path.join(this.context.tmpDir(), 'metadata-file');
}
public resolveBuildImageID(): string | undefined {

View File

@@ -89,7 +89,7 @@ export class Install {
let toolPath: string;
toolPath = tc.find('buildx', vspec);
if (!toolPath) {
const outputDir = path.join(this.context.tmpDir(), 'build-cache').split(path.sep).join(path.posix.sep);
const outputDir = path.join(this.context.tmpDir(), 'build-cache');
const buildCmd = await this.buildCommand(gitContext, outputDir);
toolPath = await exec
.getExecOutput(buildCmd.command, buildCmd.args, {

View File

@@ -27,7 +27,7 @@ export class Context {
public buildGitContext: string;
public provenanceBuilderID: string;
private readonly _tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-actions-toolkit-')).split(path.sep).join(path.posix.sep);
private readonly _tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-actions-toolkit-'));
constructor() {
this.gitRef = github.context.ref;