-
-
Notifications
You must be signed in to change notification settings - Fork 2k
bundle package - include OS specific & pure source .gem files #2040
Comments
The proposed solution does seem to work in production - I added |
This is a known issue at present -- package is only supported when it is run on the same platform it will be deployed on later. We'd like to fix it at some point, but haven't had time yet. On Aug 1, 2012, at 9:07 AM, Dr Nic [email protected] wrote:
|
If we can agree on the solution - always include the source-only version of the gem with the same version number (if available), then I might look at working on it. |
That seems reasonable off the top of my head. I'd be interested to see how it works in practice. On Aug 1, 2012, at 12:12 PM, Dr Nic [email protected] wrote:
|
It might also fix the windows users problems? |
I believe it would fix one class of problems that windows users have, yeah. There are at least one or two other common cases that wouldn't be fixed, though. On Aug 1, 2012, at 5:42 PM, Dr Nic [email protected] wrote:
|
I encountered similar, but not the same problem. In order not to fetch gems from production servers, we do My image of As @indirect mentioned above, currently Is there (technical, or desgin related) reason why |
Perhaps run bundle package locally and commit it. That way it's very explicit what you're shipping into CI & production. |
Just run into that today and it's quite frustrating :( When you deploy to Heroku, you don't use capistrano so the only option I guess is to get the linux gem and to add it manually to your vendor folder. |
Talked with @hone about this issue and he suggested to add a command flag to package for a specific platform. This would allow us to Technically, I think that the only difference is that bundle package should run targeting the passed platform without deleting packaged gems designed for another platform (OS X for instance). |
The possible issue here is that it is possible that the lockfile will end up in a hybrid platform state and no longer install correctly. I'm not sure when that happens, though, so it may not here. On Fri, May 10, 2013 at 5:12 PM, Matt Aimonetti [email protected]
|
I talked with @wycats about this issue and he definitely thinks it's a bug. I guess someone will need to get a proof a concept so wet can about it
|
Merging this with rubygems/bundler-features#4 |
When I run
bundle package
on a Gemfile withlibv8
on my Mac, I get a Darwin specific gemvendor/cache/libv8-3.3.10.4-x86_64-darwin-11.gem
. This won't work for me in production.What might work is that
bundle package
also added the pure source When I runbundle package
on a Gemfile withlibv8
on my Mac, I get a Darwin specific gemvendor/cache/libv8-3.3.10.4.gem
and/orvendor/cache/libv8-3.3.10.4-x86-linux.gem
.Then, in production (not a Mac), "bundle install --local" could pull out the specific gem it wanted.
The text was updated successfully, but these errors were encountered: