Skip to content

Commit f731690

Browse files
authored
Fix cache linebreak in linux runner (astral-sh#118)
Related astral-sh#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.
1 parent 77c28f0 commit f731690

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/setup/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/download/download-latest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ async function getVersion(uvExecutablePath: string): Promise<string> {
6767
};
6868
await exec.exec(uvExecutablePath, execArgs, options);
6969
const parts = output.split(" ");
70-
return parts[1];
70+
return parts[1].trim();
7171
}

0 commit comments

Comments
 (0)