Skip to content

Commit 13bc82f

Browse files
committed
Set UV_USE_IO_URING=0 by default
Default `UV_USE_IO_URING=0` due to build timeouts This mirrors a change by the nodejs buildpack: heroku/heroku-buildpack-nodejs#1347 The Ruby buildpack needs this because we can install node/yarn without the `heroku/nodejs` buildpack, however this behavior triggers a warning and is generally advised against.
1 parent abd7281 commit 13bc82f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [Unreleased]
44

5+
- Default `UV_USE_IO_URING=0` due to build timeouts [context](https://github.com/heroku/heroku-buildpack-nodejs/pull/1347) (https://github.com/heroku/heroku-buildpack-ruby/pull/1523)
56

67
## [v284] - 2024-11-15
78

lib/language_pack/ruby.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,9 @@ def add_node_js_binary
964964
version = @node_installer.version
965965
old_version = @metadata.fetch("default_node_version") { version }
966966

967+
ENV["UV_USE_IO_URING"] ||= "0"
968+
set_env_default "UV_USE_IO_URING", "0"
969+
967970
if version != version
968971
warn(<<~WARNING, inline: true)
969972
Default version of Node.js changed (#{old_version} to #{version})
@@ -994,6 +997,9 @@ def add_yarn_binary
994997
version = @yarn_installer.version
995998
old_version = @metadata.fetch("default_yarn_version") { version }
996999

1000+
ENV["UV_USE_IO_URING"] ||= "0"
1001+
set_env_default "UV_USE_IO_URING", "0"
1002+
9971003
if version != version
9981004
warn(<<~WARNING, inline: true)
9991005
Default version of Yarn changed (#{old_version} to #{version})

0 commit comments

Comments
 (0)