{"action":"opened","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/4494","repository_url":"https://api.github.com/repos/bundler/bundler","labels_url":"https://api.github.com/repos/bundler/bundler/issues/4494/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/4494/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/4494/events","html_url":"https://github.com/bundler/bundler/issues/4494","id":152476658,"number":4494,"title":"Cannot package xcodeproj gem with v1.12.1 on Travis CI","user":{"login":"alykhank","id":1350704,"avatar_url":"https://avatars.githubusercontent.com/u/1350704?v=3","gravatar_id":"","url":"https://api.github.com/users/alykhank","html_url":"https://github.com/alykhank","followers_url":"https://api.github.com/users/alykhank/followers","following_url":"https://api.github.com/users/alykhank/following{/other_user}","gists_url":"https://api.github.com/users/alykhank/gists{/gist_id}","starred_url":"https://api.github.com/users/alykhank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alykhank/subscriptions","organizations_url":"https://api.github.com/users/alykhank/orgs","repos_url":"https://api.github.com/users/alykhank/repos","events_url":"https://api.github.com/users/alykhank/events{/privacy}","received_events_url":"https://api.github.com/users/alykhank/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-02T03:35:47Z","updated_at":"2016-05-02T03:35:47Z","closed_at":null,"body":"After v1.12.1 was released, our use of `bundle package --no-install` on Travis CI began to fail with the error check added in #3896. The same steps still work when using v1.11.2.\r\n\r\nOur use case is that we create a ZIP/TAR distribution that is provided to users, and within that distribution there is a Ruby script that gets executed by our code. The Ruby script requires the xcodeproj gem, but we do not want to require the user connect to RubyGems nor have to install xcodeproj somewhere on their system. We achieve this by setting `GEM_HOME` and `GEM_PATH`, using `gem install --local --no-rdoc --no-ri xcodeproj-*.gem` to install the gem within our distribution directory, and running our script. If there is a better way to perform this whole procedure, please let us know!\r\n\r\nTo accomplish this, we bundle the xcodeproj gem and its dependencies into `.gem` files using `bundle package --no-install` with the following `Gemfile`:\r\n\r\n```ruby\r\nsource 'https://rubygems.org'\r\ngem 'xcodeproj', '~> 0.28.2'\r\n```\r\n\r\nOn our development machines, this works with both Bundler v1.11.2 and v1.12.1. On Travis CI, this works with v1.11.2 but fails with v1.12.1.\r\n\r\nTo reproduce the behaviour in a Docker container ([after installing Docker Engine](https://docs.docker.com/engine/installation/)), perform the following steps:\r\n\r\n1. `docker run -it quay.io/travisci/travis-jvm /bin/bash` (Note: this has to download a ~5GB image)\r\n2. `su - travis`\r\n3. `rvm install 2.3.0`\r\n4. Download `bundler-1.12.1-package.sh` from https://gist.github.com/alykhank/e64fc110c27797c569ca60d7c81e51f2 (also contains the output of `bundle env`)\r\n5. `chmod u+x bundler-1.12.1-package.sh`\r\n6. `./bundler-1.12.1-package.sh`\r\n\r\nFails with the output displayed in the Gist comments.\r\n\r\nUsing Bundler v1.11.2 for the same purpose works fine:\r\n\r\n```\r\ngem install bundler -v 1.11.2\r\nbundle _1.11.2_ package --no-install\r\n\r\n# Fetching gem metadata from https://rubygems.org/................\r\n# Fetching version metadata from https://rubygems.org/..\r\n# Resolving dependencies...\r\n# Using json 1.8.3\r\n# Using bundler 1.11.2\r\n# Bundle complete! 1 Gemfile dependency, 10 gems now installed.\r\n# Use `bundle show [gemname]` to see where a bundled gem is installed.\r\n# Updating files in vendor/cache\r\n#   * i18n-0.7.0.gem\r\n#   * json-1.8.3.gem\r\n#   * minitest-5.8.4.gem\r\n#   * thread_safe-0.3.5.gem\r\n#   * tzinfo-1.2.2.gem\r\n#   * activesupport-4.2.6.gem\r\n#   * claide-0.9.1.gem\r\n#   * colored-1.2.gem\r\n#   * xcodeproj-0.28.2.gem\r\n```"}}