13
0
Fork 0
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:
Taku Kodma 2026-06-17 21:32:01 +10:00
parent 26d734f286
commit 102cca5db7
No known key found for this signature in database
GPG key ID: 2FA149ECEAB1E16D
3 changed files with 5 additions and 3 deletions

3
dist/index.js generated vendored
View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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> {