Skip to content

Commit 54d52bc

Browse files
committed
Upgrade opam to 2.0.8 for Linux VMs
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 7a60776 commit 54d52bc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to
1414
before building the compiler.
1515
- Ubuntu no longer installs the system ocaml packages.
1616
- macOS no longer builds two compilers on every run.
17+
- Upgrade opam to 2.0.8 for Linux VMs.
1718

1819
## [1.1.6]
1920

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5034,7 +5034,7 @@ function acquireOpamLinux(version, customRepository) {
50345034
return __generator(this, function (_a) {
50355035
switch (_a.label) {
50365036
case 0:
5037-
opamVersion = "2.0.7";
5037+
opamVersion = "2.0.8";
50385038
fileName = getOpamFileName(opamVersion);
50395039
downloadUrl = getOpamDownloadUrl(opamVersion, fileName);
50405040
repository = customRepository || "https://github.com/ocaml/opam-repository.git";
@@ -5050,7 +5050,7 @@ function acquireOpamLinux(version, customRepository) {
50505050
core.debug(error_2);
50515051
throw "Failed to download version " + opamVersion + ": " + error_2;
50525052
case 4:
5053-
fs.chmodSync(downloadPath, "755");
5053+
fs.chmodSync(downloadPath, 493);
50545054
return [4 /*yield*/, tc.cacheFile(downloadPath, "opam", "opam", opamVersion)];
50555055
case 5:
50565056
toolPath = _a.sent();

src/installer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function acquireOpamWindows(version: string, customRepository: string) {
5353
}
5454

5555
async function acquireOpamLinux(version: string, customRepository: string) {
56-
const opamVersion = "2.0.7";
56+
const opamVersion = "2.0.8";
5757
const fileName = getOpamFileName(opamVersion);
5858
const downloadUrl = getOpamDownloadUrl(opamVersion, fileName);
5959
const repository =
@@ -66,7 +66,7 @@ async function acquireOpamLinux(version: string, customRepository: string) {
6666
core.debug(error);
6767
throw `Failed to download version ${opamVersion}: ${error}`;
6868
}
69-
fs.chmodSync(downloadPath, "755");
69+
fs.chmodSync(downloadPath, 0o755);
7070
const toolPath: string = await tc.cacheFile(
7171
downloadPath,
7272
"opam",

0 commit comments

Comments
 (0)