Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ and this project adheres to

## [unreleased]

### Changed

- Remove some hacks as `--no-depexts` is now used in CLI 2.0 mode from opam
2.1.2.

## [2.0.0-beta9]

### Changed
Expand Down
10 changes: 3 additions & 7 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions dist/post/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/depext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ export async function installDepext(ocamlVersion: string): Promise<void> {
export async function installSystemPackages(fpaths: string[]): Promise<void> {
core.startGroup("Install system packages required by opam packages");
const fnames = fpaths.map((fpath) => path.basename(fpath, ".opam"));
await exec("opam", ["depext", ...fnames, ...OPAM_DEPEXT_FLAGS], {
env: { ...process.env, PATH: process.env.PATH || "", OPAMCLI: "2.0" },
});
await exec("opam", ["depext", ...fnames, ...OPAM_DEPEXT_FLAGS]);
core.endGroup();
}
4 changes: 1 addition & 3 deletions src/dune.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ const {

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

Expand Down
2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export async function installer(): Promise<void> {
const platform = getPlatform();
const numberOfProcessors = os.cpus().length;
const isDebug = core.isDebug();
core.exportVariable("OPAMCLI", "2.0");
core.exportVariable("OPAMCOLOR", "always");
core.exportVariable("OPAMCONFIRMLEVEL", "unsafe-yes");
core.exportVariable("OPAMERRLOGLEN", 0);
core.exportVariable("OPAMJOBS", numberOfProcessors);
core.exportVariable("OPAMPRECISETRACKING", 1);
Expand Down