mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-08 21:21:12 +00:00
Merge branch 'master' into auth
This commit is contained in:
commit
6b65ca8e49
55 changed files with 240 additions and 3153 deletions
3
node_modules/@actions/tool-cache/lib/tool-cache.js
generated
vendored
3
node_modules/@actions/tool-cache/lib/tool-cache.js
generated
vendored
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue