Skip to content

Commit e63646f

Browse files
committed
Work around failures on platforms where the number of files open at once is limited
1 parent 18d124c commit e63646f

3 files changed

Lines changed: 21 additions & 0 deletions

File tree

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.

dist/post/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/cache.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ async function composeOpamCacheKeys() {
5050
const repositoryUrls = OPAM_REPOSITORIES.map(([_, value]) => value).join();
5151
const osInfo = await system.osInfo();
5252
const plainKey = [
53+
"workaround-v1", /* Work around failures on macOS where the number of
54+
open files at once is limited and GNU Patch will
55+
keep open a possibly unlimited number of files.
56+
ulimit -n will not work as a workaround because of
57+
https://savannah.gnu.org/bugs/?55797
58+
so the solution is to change the key for everyone
59+
so opam-repository is fetched again from scratch. */
5360
PLATFORM,
5461
osInfo.release,
5562
ARCHITECTURE,

0 commit comments

Comments
 (0)