Skip to content

Commit b483f77

Browse files
authored
Merge pull request #346 from ocaml/opam-2.1.2
Solve the CI puzzle with opam 2.1.2
2 parents 8d6b453 + 6cd2651 commit b483f77

File tree

6 files changed

+12
-17
lines changed

6 files changed

+12
-17
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ and this project adheres to
88

99
## [unreleased]
1010

11+
### Changed
12+
13+
- Remove some hacks as `--no-depexts` is now used in CLI 2.0 mode from opam
14+
2.1.2.
15+
1116
## [2.0.0-beta9]
1217

1318
### Changed

dist/index.js

Lines changed: 3 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/depext.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export async function installDepext(ocamlVersion: string): Promise<void> {
2626
export async function installSystemPackages(fpaths: string[]): Promise<void> {
2727
core.startGroup("Install system packages required by opam packages");
2828
const fnames = fpaths.map((fpath) => path.basename(fpath, ".opam"));
29-
await exec("opam", ["depext", ...fnames, ...OPAM_DEPEXT_FLAGS], {
30-
env: { ...process.env, PATH: process.env.PATH || "", OPAMCLI: "2.0" },
31-
});
29+
await exec("opam", ["depext", ...fnames, ...OPAM_DEPEXT_FLAGS]);
3230
core.endGroup();
3331
}

src/dune.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ const {
1111

1212
export async function installDune(): Promise<void> {
1313
core.startGroup("Install dune");
14-
await exec("opam", ["depext", "dune", "--install"], {
15-
env: { ...process.env, PATH: process.env.PATH || "", OPAMCLI: "2.0" },
16-
});
14+
await exec("opam", ["depext", "dune", "--install"]);
1715
core.endGroup();
1816
}
1917

src/installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export async function installer(): Promise<void> {
3636
const platform = getPlatform();
3737
const numberOfProcessors = os.cpus().length;
3838
const isDebug = core.isDebug();
39+
core.exportVariable("OPAMCLI", "2.0");
3940
core.exportVariable("OPAMCOLOR", "always");
40-
core.exportVariable("OPAMCONFIRMLEVEL", "unsafe-yes");
4141
core.exportVariable("OPAMERRLOGLEN", 0);
4242
core.exportVariable("OPAMJOBS", numberOfProcessors);
4343
core.exportVariable("OPAMPRECISETRACKING", 1);

0 commit comments

Comments
 (0)