-
-
Notifications
You must be signed in to change notification settings - Fork 2k
bundle package flag --all-platforms has no effect #4295
Comments
That's because you only have the |
There are multiple
|
I believe |
How would that work when the generated lock file on |
@tam7t the cached packages are compatible. the cache contains the .gem files and nothing else. |
hmm. that may only be partially true in this case. it is extremely rare for a gem to have prebuilt binary versions on either Linux or Darwin, but it seems that this gem does. the gem that has no specific platform (which is the "ruby" platform) should contain the source code that needs to be compiled on either Linux or Darwin for the gem to function. it is the version that is cross-compatible. the precompiled versions will not be cross compatible (but they also don't have the platform "ruby", which seems to be the only one present in your Gemfile at the moment). |
@indirect are you suggesting that google is wrong to supply binary-builds in addition to their source-only gem? I would just expect that |
I'm suggesting that Google is alone in shipping binaries for Linux and Darwin among gem creators. Because that is a unique situation, Bundler does not have special handling for that case. |
Thanks! Out of curiosity I downloaded a copy of the rubygem database and found only < 100 gems that would be affected by this. Lucky me! |
I've made some progress on this -- it turned out to involve re-writing a lot of how the resolver and lockfile deal with platforms |
…ndirect Resolve for specific platforms Closes #4295. This will require adding a bunch of tests, as well as figuring out how to put this new behavior behind a feature flag (thus fixing all of the existing tests).
…ndirect Resolve for specific platforms Closes #4295. This will require adding a bunch of tests, as well as figuring out how to put this new behavior behind a feature flag (thus fixing all of the existing tests).
…ndirect Resolve for specific platforms Closes #4295. This will require adding a bunch of tests, as well as figuring out how to put this new behavior behind a feature flag (thus fixing all of the existing tests).
When i run
bundle package --all-platforms
I would expectvendor/cache
to be populated with.gem
for all platforms, however I only get the current platform gem.and
My ultimate desire would be to just get the
ruby
platform version and build from source, but I thought that--all-platforms
would be the next best alternative. I couldn't find this reported elsewhere (but was mentioned in rubygems/bundler-features#4 (comment))The text was updated successfully, but these errors were encountered: