Skip to content

Commit

Permalink
Merge pull request #786 from ocaml/do-not-use-depext-subcmd-extends
Browse files Browse the repository at this point in the history
Do not use the depext subcommand if it's not required
  • Loading branch information
smorimoto authored Apr 27, 2024
2 parents 99fa968 + 2e4bccb commit defbaea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lint-fmt/dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19996,7 +19996,7 @@ var core = __toESM(require_core(), 1);
var import_exec2 = __toESM(require_exec(), 1);
async function installOcamlformat(version2) {
await core.group("Install ocamlformat", async () => {
await (0, import_exec2.exec)("opam", ["depext", "--install", `ocamlformat=${version2}`]);
await (0, import_exec2.exec)("opam", ["install", `ocamlformat=${version2}`]);
});
}

Expand Down
2 changes: 1 addition & 1 deletion lint-opam/dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19978,7 +19978,7 @@ async function installOpamPackages() {
}
async function installOpamDuneLint() {
await core.group("Install opam-dune-lint", async () => {
await (0, import_exec2.exec)("opam", ["depext", "--install", "opam-dune-lint"]);
await (0, import_exec2.exec)("opam", ["install", "opam-dune-lint"]);
});
}

Expand Down
2 changes: 1 addition & 1 deletion packages/lint-fmt/src/opam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { exec } from "@actions/exec";

export async function installOcamlformat(version: string) {
await core.group("Install ocamlformat", async () => {
await exec("opam", ["depext", "--install", `ocamlformat=${version}`]);
await exec("opam", ["install", `ocamlformat=${version}`]);
});
}
2 changes: 1 addition & 1 deletion packages/lint-opam/src/opam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export async function installOpamPackages() {

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

0 comments on commit defbaea

Please sign in to comment.