Skip to content

Commit 2e4bccb

Browse files
committed
Do not use the depext subcommand if it's not required
Signed-off-by: Sora Morimoto <[email protected]>
1 parent a308ea2 commit 2e4bccb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lint-fmt/dist/index.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19996,7 +19996,7 @@ var core = __toESM(require_core());
1999619996
var import_exec2 = __toESM(require_exec());
1999719997
async function installOcamlformat(version2) {
1999819998
await core.group("Install ocamlformat", async () => {
19999-
await (0, import_exec2.exec)("opam", ["depext", "--install", `ocamlformat=${version2}`]);
19999+
await (0, import_exec2.exec)("opam", ["install", `ocamlformat=${version2}`]);
2000020000
});
2000120001
}
2000220002

lint-opam/dist/index.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19978,7 +19978,7 @@ async function installOpamPackages() {
1997819978
}
1997919979
async function installOpamDuneLint() {
1998019980
await core.group("Install opam-dune-lint", async () => {
19981-
await (0, import_exec2.exec)("opam", ["depext", "--install", "opam-dune-lint"]);
19981+
await (0, import_exec2.exec)("opam", ["install", "opam-dune-lint"]);
1998219982
});
1998319983
}
1998419984

packages/lint-fmt/src/opam.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { exec } from "@actions/exec";
33

44
export async function installOcamlformat(version: string) {
55
await core.group("Install ocamlformat", async () => {
6-
await exec("opam", ["depext", "--install", `ocamlformat=${version}`]);
6+
await exec("opam", ["install", `ocamlformat=${version}`]);
77
});
88
}

packages/lint-opam/src/opam.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ export async function installOpamPackages() {
1515

1616
export async function installOpamDuneLint() {
1717
await core.group("Install opam-dune-lint", async () => {
18-
await exec("opam", ["depext", "--install", "opam-dune-lint"]);
18+
await exec("opam", ["install", "opam-dune-lint"]);
1919
});
2020
}

0 commit comments

Comments
 (0)