Merge branch 'master' into auth

This commit is contained in:
Danny McCormick 2019-08-05 21:33:24 -04:00 committed by GitHub
commit 6b65ca8e49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 240 additions and 3153 deletions

View file

@ -15,7 +15,6 @@ 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");
@ -273,7 +272,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);
shell.cp('-R', s, destPath);
yield io.cp(s, destPath, { recursive: true });
}
// write .complete
_completeToolPath(tool, version, arch);