Skip to content

Instantly share code, notes, and snippets.

@mvz
Created December 23, 2013 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvz/8099820 to your computer and use it in GitHub Desktop.
Save mvz/8099820 to your computer and use it in GitHub Desktop.
Script to reproduce problem where :rbx platform seems to be ignored by Bundler
#!/bin/bash
set -ex
mkdir -p /tmp/repro-rbx-platform-issue
cd /tmp/repro-rbx-platform-issue
bundle env
# Bundler 1.3.5
# Ruby 2.0.0 (2013-11-22 patchlevel 353) [x86_64-linux-gnu]
# Rubygems 2.0.14
# GEM_HOME /home/matijs/.rbenv/versions/2.0.0-debian/gems
# GEM_PATH
#
# Bundler settings
# shebang
# Set for the current user (/home/matijs/.bundle/config): "ruby"
ruby -v
# ruby 2.0.0p353 (2013-11-22) [x86_64-linux-gnu]
cat > Gemfile <<EOF
source "http://rubygems.org"
gem 'rubysl', platform: :rbx
EOF
# Expected behaviour: should not complain and not install rubysl
# Observed behaviour: complains it cannot find rubysl
bundle install --local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment