diff options
author | Tom Duffield <tom@chef.io> | 2018-03-29 12:11:54 -0500 |
---|---|---|
committer | Tom Duffield <tom@chef.io> | 2018-03-29 12:11:54 -0500 |
commit | b7030361cebe2672455b58d50249595870d18387 (patch) | |
tree | df45e617880082103c304aafd4f7fea29c3d39d1 | |
parent | 8b8b9634648e9c2c58c0a97ed583f174dbcad111 (diff) | |
download | bundler-b7030361cebe2672455b58d50249595870d18387.tar.gz |
Bump the bundle_binstub check-length to 300 characters
Some packaging systems require modifications to the hash-bang
interpreter path, making them longer than normal. One such example of
this is the habitat-sh/habitat project. The result is that the 150
character limit does not find the regex it is looking for, and prevents
an otherwise valid binary from starting.
This change doubles the length of the check from 150 characters to 300
characters. This change has been validated in an impacted environment.
Signed-off-by: Tom Duffield <tom@chef.io>
-rw-r--r-- | lib/bundler/templates/Executable | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/templates/Executable b/lib/bundler/templates/Executable index 414a75898d..3e8d5b317a 100644 --- a/lib/bundler/templates/Executable +++ b/lib/bundler/templates/Executable @@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../<%= relative_gemfile_path %>", bundle_binstub = File.expand_path("../bundle", __FILE__) if File.file?(bundle_binstub) - if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/ + if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ load(bundle_binstub) else abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. |