chore: remove path sep conversion
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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, {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user