You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new Bundler config to control how many specs are fetched:
- ### Problem
In #9071, I increased the API_REQUEST_SIZE constants to fetch 100
specifications at once instead of 50.
Worth to remember that this codepath is exclusively used for servers
that don't implement the compact index API and where Bundler has to
fallback on the `/v1/dependencies` endpoint.
Fetching 100 gems at once seems not supported by some gem servers.
See #9345
### Solution
I'd like to provide a new Bundler configuration
`BUNDLE_API_REQUEST_SIZE` to let users of those servers control how
many dependencies should be fetched at once.
### Alternatives
The other alternative is to revert #9071 and always fetch 50 specs.
I tried the number 100 on a single rubygem registry (cloudsmith),
and I don't have data point to know whether this value is supported
by most registries.
Copy file name to clipboardExpand all lines: bundler/lib/bundler/man/bundle-config.1
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
.\" generated with Ronn-NG/v0.10.1
2
2
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
3
-
.TH "BUNDLE\-CONFIG" "1" "February 2026" ""
3
+
.TH "BUNDLE\-CONFIG" "1" "March 2026" ""
4
4
.SH "NAME"
5
5
\fBbundle\-config\fR\- Set bundler configuration options
6
6
.SH "SYNOPSIS"
@@ -70,6 +70,9 @@ Any periods in the configuration keys must be replaced with two underscores when
70
70
.SH "LIST OF AVAILABLE KEYS"
71
71
The following is a list of all configuration keys and their purpose\. You can learn more about their operation in bundle install(1) \fIbundle\-install\.1\.html\fR\.
Configure how many dependencies to fetch when resolving the specifications\. This configuration is only used when fetchig specifications from RubyGems servers that didn't implement the Compact Index API\. Defaults to 100\.
75
+
.TP
73
76
\fBauto_install\fR (\fBBUNDLE_AUTO_INSTALL\fR)
74
77
Automatically run \fBbundleinstall\fR when gems are missing\.
0 commit comments