mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-02-23 00:55:22 +08:00
Fix cache linebreak in linux runner (#118)
Related https://github.com/astral-sh/setup-uv/issues/106 We can see the differences `uv --version` in different platforms: OSX: uv 0.4.20 (0e1b25a53 2024-10-08)\n Linux: uv 0.4.20\n In getVersion function we split the output by space and return the second part. This PR trims the version number to remove the line break.
This commit is contained in:
parent
77c28f02b3
commit
f731690a1d
2
dist/setup/index.js
generated
vendored
2
dist/setup/index.js
generated
vendored
@ -90020,7 +90020,7 @@ function getVersion(uvExecutablePath) {
|
||||
};
|
||||
yield exec.exec(uvExecutablePath, execArgs, options);
|
||||
const parts = output.split(" ");
|
||||
return parts[1];
|
||||
return parts[1].trim();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -67,5 +67,5 @@ async function getVersion(uvExecutablePath: string): Promise<string> {
|
||||
};
|
||||
await exec.exec(uvExecutablePath, execArgs, options);
|
||||
const parts = output.split(" ");
|
||||
return parts[1];
|
||||
return parts[1].trim();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user