Skip to content

Instantly share code, notes, and snippets.

@mvz
Created March 5, 2017 06:24
Show Gist options
  • Save mvz/2b603766f5de391f5c23393f766146c8 to your computer and use it in GitHub Desktop.
Save mvz/2b603766f5de391f5c23393f766146c8 to your computer and use it in GitHub Desktop.
Demonstration of bundler issue with nested bundle exec combined with openssl
# Reproduction of nested call bug with bundler 1.14.6
FROM ruby:2.4.0
RUN gem update openssl
RUN mkdir bbug
WORKDIR /bbug
RUN gem install bundler --version '1.14.6'
RUN echo "#!/usr/bin/env ruby\nrequire 'openssl'\np OpenSSL::VERSION" > a.rb
RUN touch Gemfile
RUN bundle
RUN chmod +x a.rb
RUN ./a.rb
RUN bundle exec ./a.rb
RUN bundle exec bundle exec ./a.rb
RUN bundle -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment