Skip to content

Commit 6c4028c

Browse files
authored
Merge pull request #20972 from Homebrew/formula_creator-ruby
formula_creator: setup bundler env vars for ruby formula creation
2 parents 490e51d + e26e3ec commit 6c4028c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Library/Homebrew/formula_creator.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,11 @@ def install
267267
<% elsif @mode == :python %>
268268
virtualenv_install_with_resources
269269
<% elsif @mode == :ruby %>
270+
ENV["BUNDLE_FORCE_RUBY_PLATFORM"] = "1"
271+
ENV["BUNDLE_WITHOUT"] = "development test"
270272
ENV["BUNDLE_VERSION"] = "system" # Avoid installing Bundler into the keg
271273
ENV["GEM_HOME"] = libexec
272274
273-
system "bundle", "config", "set", "without", "development", "test"
274275
system "bundle", "install"
275276
system "gem", "build", "\#{name}.gemspec"
276277
system "gem", "install", "\#{name}-\#{version}.gem"

0 commit comments

Comments
 (0)