mirror of
https://github.com/jdx/mise-action.git
synced 2026-07-02 17:49:30 +00:00
fix: use mv for cross-device tar install moves
io.mv relies on rename(2) and fails with EXDEV when /tmp and the mise install directory are on different filesystems. Use the system mv command instead, matching main's behavior.
This commit is contained in:
parent
26d734f286
commit
102cca5db7
3 changed files with 5 additions and 3 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
|
@ -89654,7 +89654,8 @@ async function installFromTarUrl(url, tarArgs, miseBinPath) {
|
|||
tar.kill();
|
||||
throw err;
|
||||
}
|
||||
await mv(path$1.join(tmpdir, 'mise', 'bin', 'mise'), miseBinPath);
|
||||
const extractedMisePath = path$1.join(tmpdir, 'mise', 'bin', 'mise');
|
||||
await exec('mv', [extractedMisePath, miseBinPath]);
|
||||
}
|
||||
async function getInstalledMiseVersion(miseBinPath) {
|
||||
const versionOutput = await getExecOutput(miseBinPath, ['version', '--json'], { silent: true });
|
||||
|
|
|
|||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -531,7 +531,8 @@ async function installFromTarUrl(
|
|||
throw err
|
||||
}
|
||||
|
||||
await io.mv(path.join(tmpdir, 'mise', 'bin', 'mise'), miseBinPath)
|
||||
const extractedMisePath = path.join(tmpdir, 'mise', 'bin', 'mise')
|
||||
await exec.exec('mv', [extractedMisePath, miseBinPath])
|
||||
}
|
||||
|
||||
async function getInstalledMiseVersion(miseBinPath: string): Promise<string> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue