Consume different tool-cache

This commit is contained in:
Danny McCormick 2019-06-26 16:52:05 -04:00
parent e4990368a5
commit 4d73af8dd9
54 changed files with 3141 additions and 255 deletions

View file

@ -15,6 +15,7 @@ const os = require("os");
const path = require("path");
const httpm = require("typed-rest-client/HttpClient");
const semver = require("semver");
const shell = require("shelljs");
const uuidV4 = require("uuid/v4");
const exec_1 = require("@actions/exec/lib/exec");
const assert_1 = require("assert");
@ -272,7 +273,7 @@ function cacheDir(sourceDir, tool, version, arch) {
// due to anti-virus software having an open handle on a file.
for (const itemName of fs.readdirSync(sourceDir)) {
const s = path.join(sourceDir, itemName);
yield io.cp(s, destPath, { recursive: true });
shell.cp(s, destPath, '-r');
}
// write .complete
_completeToolPath(tool, version, arch);