mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-17 17:21:11 +00:00
Consume different tool-cache
This commit is contained in:
parent
e4990368a5
commit
4d73af8dd9
54 changed files with 3141 additions and 255 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,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue