Skip to content

Commit

Permalink
Fix cache linebreak in linux runner (#118)
Browse files Browse the repository at this point in the history
Related #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.
  • Loading branch information
yosmoc authored Oct 12, 2024
1 parent 77c28f0 commit f731690
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/setup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/download/download-latest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit f731690

Please sign in to comment.