Skip to content

Commit 3f244ea

Browse files
committed
Set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK to 1 on the runner while installing OCaml
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 7ac5a7d commit 3f244ea

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to
1111
### Added
1212

1313
- Add opam support for the Dependency submission API.
14+
- Set `HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` to `1` on the runner while installing OCaml.
1415

1516
### Removed
1617

dist/index.js

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

packages/setup-ocaml/src/installer.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,18 @@ export async function installer() {
7676
await restoreCygwinCache();
7777
}
7878
const opamCacheHit = await restoreOpamCache();
79+
const HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK =
80+
process.env["HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK"];
81+
if (PLATFORM === "macos") {
82+
core.exportVariable("HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK", 1);
83+
}
7984
await setupOpam();
85+
if (PLATFORM === "macos") {
86+
core.exportVariable(
87+
"HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK",
88+
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK,
89+
);
90+
}
8091
await repositoryRemoveAll();
8192
await repositoryAddAll(OPAM_REPOSITORIES);
8293
const ocamlCompiler = await resolveCompiler(OCAML_COMPILER);

packages/setup-ocaml/turbo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"passThroughEnv": [
88
"GITHUB_ACTIONS",
99
"GITHUB_WORKSPACE",
10+
"HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK",
1011
"PATH",
1112
"USERPROFILE",
1213
"XDG_CACHE_HOME"

0 commit comments

Comments
 (0)