Skip to content

Commit

Permalink
[setup-r] Fix tarball (Linux) version to 4.1.3 temporarily
Browse files Browse the repository at this point in the history
Until we have everything in place for R 4.2.0.
  • Loading branch information
gaborcsardi committed Apr 21, 2022
1 parent 7ca62db commit c00599c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup-r/lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,9 @@ function getReleaseVersion(platform) {
return __awaiter(this, void 0, void 0, function* () {
let rest = new restm.RestClient("setup-r");
let tags = (yield rest.get(util.format("https://api.r-hub.io/rversions/r-release-%s", platform))).result || { version: "" };
if (platform == 'tarball') {
return "4.1.3";
}
return tags.version;
});
}
Expand Down
3 changes: 3 additions & 0 deletions setup-r/src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,9 @@ async function getReleaseVersion(platform: string): Promise<string> {
)
).result || { version: "" };

if (platform == 'tarball') {
return "4.1.3";
}
return tags.version;
}

Expand Down

0 comments on commit c00599c

Please sign in to comment.