Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundle package --all-platforms not finding cross-platform gems #3359

Closed
JJJJust opened this issue Aug 7, 2018 · 4 comments
Closed

bundle package --all-platforms not finding cross-platform gems #3359

JJJJust opened this issue Aug 7, 2018 · 4 comments

Comments

@JJJJust
Copy link

JJJJust commented Aug 7, 2018

I originally posted this as a comment to rubygems/bundler#5989 because of its broad title, but now think it's a different issue.

bundle package --all-platforms beginning with 1.16 doesn't seem to work properly, claiming that it can't find sources for gems for other platforms.

Environment

Bundler       1.16.3
  Platforms   ruby, x64-mingw32
Ruby          2.5.1p57 (2018-03-29 revision 63029) [x64-mingw32]
  Full Path   D:/Development/Libraries/Ruby/2.5.1/bin/ruby.exe
  Config Dir  C:/ProgramData
RubyGems      2.7.6
  Gem Home    D:/Development/Libraries/Ruby/2.5.1/lib/ruby/gems/2.5.0
  Gem Path    C:/Users/JSJohnson/.gem/ruby/2.5.0;D:/Development/Libraries/Ruby/2.5.1/lib/ruby/gems/2.5.0
  User Path   C:/Users/JSJohnson/.gem/ruby/2.5.0
  Bin Dir     D:/Development/Libraries/Ruby/2.5.1/bin
Tools
  Git         2.18.0.windows.1
  RVM         not installed
  rbenv       not installed
  chruby      not installed

Bundler Build Metadata

Built At          2018-07-17
Git SHA           12e73cab7
Released Version  true

Bundler settings

specific_platform
  Set for your local app (d:/Development/Projects/bundletest/.bundle/config): true
cache_all_platforms
  Set for your local app (d:/Development/Projects/bundletest/.bundle/config): true

Gemfile

Gemfile

source 'https://rubygems.org'

gem 'pg', '~> 1'

Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    pg (1.0.0)
    pg (1.0.0-x64-mingw32)

PLATFORMS
  x64-mingw32
  x84_64-linux

DEPENDENCIES
  pg (~> 1)

BUNDLED WITH
   1.15.4

At 3203fdd

d:\Development\Projects\bundletest>ruby -I D:\Development\Projects\bundle\test\lib -S bundle package --all-platforms
The latest bundler is 1.16.1, but you are currently running 1.15.4.
To install the latest version, run `gem install bundler`
Fetching gem metadata from https://rubygems.org/....
Using bundler 1.15.4
Using pg 1.0.0 (x64-mingw32)
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Updating files in vendor/cache
  * pg-1.0.0-x64-mingw32.gem
Fetching pg 1.0.0
  * pg-1.0.0.gem

After deleting vendor/cache, and trying with 5686af6, it broke with:

d:\Development\Projects\bundletest>ruby -I D:\Development\Projects\bundle\test\lib -S bundle package --all-platforms
The latest bundler is 1.16.1, but you are currently running 1.15.4.
To install the latest version, run `gem install bundler`
Using bundler 1.15.4
Using pg 1.0.0 (x64-mingw32)
Bundle complete! 1 Gemfile dependency, 2 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Updating files in vendor/cache
Could not find pg-1.0.0 in any of the sources

I still get the same error today on 1.16.3.

Reverting the change made to lib/bundler/installer.rb allows bundle package to work again both at the specified commit and on 1.16.3, but I haven't the foggiest idea why.

@romulus-ai
Copy link

Same for me but also with bundler 2.0.2

@hsbt hsbt transferred this issue from rubygems/bundler Mar 14, 2020
@deivid-rodriguez
Copy link
Member

Hei could some of you check whether rubygems/bundler#6113 fixed this? It was released with bundler 2.1.4. Thanks!

@deivid-rodriguez
Copy link
Member

Actually, I think #4022 should fix this!

@deivid-rodriguez
Copy link
Member

Assuming this is fixed by the mentioned PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants