indirect changed the topic of #bundler to: Docs! http://bundler.io | Problems? http://bit.ly/bundler-issues | How to help: http://bit.ly/bundler-development | API Dashboard http://cl.ly/SBoH | #bundler logs: http://bit.ly/bundler-logs | Questions will be answered eventually, so hang out for a while
axl_ has joined #bundler
axl_ has quit [Client Quit]
axl_ has joined #bundler
kgrz has joined #bundler
kgrz has quit [Ping timeout: 272 seconds]
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #bundler
Pupeno has quit [Ping timeout: 252 seconds]
jaimef has quit [Excess Flood]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #bundler
havenwood has joined #bundler
chouhoul_ has joined #bundler
jaimef has joined #bundler
chouhoulis has quit [Ping timeout: 272 seconds]
chouhoul_ has quit [Ping timeout: 244 seconds]
jaimef has quit [Excess Flood]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaimef has joined #bundler
kgrz has joined #bundler
kgrz has quit [Ping timeout: 248 seconds]
_ixti_ has quit [Ping timeout: 248 seconds]
x1337807x has joined #bundler
x1337807x has quit [Read error: Connection reset by peer]
x1337807x has joined #bundler
x1337807x has quit [Client Quit]
axl_ has quit [Quit: axl_]
rb2k has quit [Quit: rb2k]
x1337807x has joined #bundler
x1337807x has quit [Client Quit]
cschneid has quit [Quit: ZNC - http://znc.sourceforge.net]
jaimef has quit [Excess Flood]
jaimef has joined #bundler
houhoulis has joined #bundler
chouhoulis has joined #bundler
chouhoulis has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
chouhoulis has joined #bundler
kgrz has joined #bundler
kgrz has quit [Ping timeout: 264 seconds]
rb2k has joined #bundler
x1337807x has joined #bundler
x1337807x has quit [Ping timeout: 272 seconds]
x1337807x has joined #bundler
x1337807x has quit [Client Quit]
x1337807x has joined #bundler
rb2k has quit [Quit: rb2k]
kgrz has joined #bundler
havenwood has quit [Remote host closed the connection]
woollyams has joined #bundler
jaimef has quit [Excess Flood]
jaimef has joined #bundler
slash_nick has quit [Ping timeout: 252 seconds]
slash_nick has joined #bundler
Pupeno has joined #bundler
Pupeno has quit [Ping timeout: 260 seconds]
havenwood has joined #bundler
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has joined #bundler
x1337807x has quit [Client Quit]
jaimef has quit [Excess Flood]
havenwood has quit [Ping timeout: 264 seconds]
jaimef has joined #bundler
woollyams has quit [Ping timeout: 272 seconds]
woollyams has joined #bundler
kgrz has quit []
kgrz has joined #bundler
kgrz has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 272 seconds]
kgrz has joined #bundler
indirect has quit [Ping timeout: 264 seconds]
indirect has joined #bundler
woollyams has joined #bundler
woollyams has quit [Ping timeout: 272 seconds]
havenwood has joined #bundler
havenwood has quit [Ping timeout: 264 seconds]
woollyams has joined #bundler
woollyams has quit [Ping timeout: 272 seconds]
jacobat has joined #bundler
<jacobat> I have a bundle packaged gem sourced from github with a native extension and I want to rebuild the extension, can I do this with bundler?
Pupeno has joined #bundler
<tmoore> jacobat: it builds the extension when you bundle install
<tmoore> bundle package copies the gem file into vendor/cache, but that generally does not include the compiled binary
<jacobat> tmoore: Yeah, but for the wrong OS - I'm taking a bundle packaged on OSX and using it on Linux
<tmoore> you might be getting a platform-specific binary gem in that case... which gem is it?
<jacobat> rinku
<jacobat> I can work around it by going to vendor/cache/rinku-some-git-thing and rebuilding and moving the extension myself
<tmoore> oh right you said sourced from github... missed that part
<tmoore> I'm pretty sure in that case, what's in vendor/cache is just the github repo, and it rebuilds the binary when you run bundle install
<jacobat> tmoore: It doesn't when I do bundle install --local
<jacobat> It just keeps what's already there
<jacobat> Maybe the gem is misconfigured somehow
<tmoore> that might be a bug :-\
<jacobat> It's pretty much an edge-case I guess
<tmoore> in general, we recommend packaging on the same system you deploy to... there are a bunch of known issues around cross-platform packaging
<tmoore> same type of system I mean
<jacobat> tmoore: That's not so easy in this case though (I'm using docker, so I don't have github access from linux)
<jacobat> It would be a lot easier if all our gems were on a gem server, so I'll push for adopting some kind of gem server
<tmoore> you don't have github access because there's no outbound network access?
havenwood has joined #bundler
<tmoore> jacobat: looking at your earlier question about "You need to install git to be able to use gems from git repositories" ... do you not have git installed in the Docker container?
<tmoore> that could be why it's not rebuilding... I'm reading through the Bundler source code now, and AFAICT, it should be rebuilding the binary when you install, but if you don't have git installed it will bomb out before it gets to that point
<jacobat> tmoore: No, there's no git in the container
<jacobat> tmoore: Why would there need to be? :)
<tmoore> ah right I think that explains it
havenwood has quit [Ping timeout: 264 seconds]
<tmoore> well... because you're using a git gem :-) the error message it gives isn't joking!
<jacobat> tmoore: But I already have the source code, so there should be no need to use git for anything, no?
<tmoore> it uses git to check that the revision is correct
<tmoore> otherwise it can't guarantee that you're running the right version
<jacobat> Right, makes sense
chouhoulis has quit [Remote host closed the connection]
<jacobat> bundle check works though ;)
<tmoore> bundler probably could be improved to work with cached git repos better
<tmoore> but that's a limitation at the moment
<jacobat> Okay
<tmoore> anyway, if you get git installed, I bet it will correctly rebuild the extension
<tmoore> if not, I think that's a bug
<jacobat> Let's try
<jacobat> Without git: "Your bundle is complete!"
<jacobat> With git, the same, and still no extension
<tmoore> can you gist the output?
<jacobat> Sure
<jacobat> What do you want to see?
<tmoore> that's good thanks
<tmoore> jacobat: could you let me know the bundle and gem versions?
Pupeno_ has joined #bundler
Pupeno has quit [Ping timeout: 252 seconds]
<jacobat> tmoore: bundler version?
<jacobat> bundler version is 1.6.3
<jacobat> gem "rinku", :git => "https://github.com/shajith/rinku.git", :tag => "v1.7.2-unicode"
<tmoore> Oh I mean the version of Rubygems
<jacobat> 2.2.2
habitullence has joined #bundler
<tmoore> thanks
<tmoore> jacobat: is there a file called 'gem.build_complete' inside vendor/cache/rinku-c4e19b2ba651/ext?
<jacobat> tmoore: no, there's one called ext-built in the gem root
<jacobat> doesn't change anything if I remove it though
<tmoore> hmm is it possible you're using this monkey patch? https://github.com/bundler/bundler/issues/3014
<tmoore> that never made it into Bundler itself
<jacobat> Wait a second
<jacobat> I've got a rinku.so in vendor/cache/extensions/x86_64-linux/2.1.0-static/rinku-c4e19b2ba651 now
<jacobat> If I remove ext-built, then "bundle install --local" will rebuild the extension for linux
<tmoore> cool
<jacobat> Indeed! :)
<tmoore> I'm still not sure how it got that way in the first place, unless you're using the patch in that issue I linked above which specifically *dis*ables rebuilding git gems :-)
<jacobat> I'm pretty confident this is stock bundler :)
<tmoore> ext-built isn't in the source code for stock bundler :-\
<jacobat> I built the image from scratch with Ruby 2.1.2 yesterday
<jacobat> Let me check
<jacobat> Oh crap! You just might be right...
<tmoore> maybe monkey patched in the app source code?
<jacobat> There might be a bundler plugin somewhere doing the monkey patching
<jacobat> I know grosser ;)
<tmoore> heheh
<jacobat> Oh yes, it's in my Gemfile *sigh*
woollyams has joined #bundler
<tmoore> heh I was gonna say... the Gemfile in this issue is also using the same version of rinku... it's not the same app is it?
<jacobat> Ehmmm.... ;)
<tmoore> anyway... glad the mystery is solved... I'm gonna go grab some dinner now. Good luck! :-)
<jacobat> Enjoy, and thanks!
kgrz_ has joined #bundler
kgrz has quit [Ping timeout: 240 seconds]
Pupeno_ has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 272 seconds]
Pupeno has joined #bundler
woollyams has joined #bundler
habitullence has quit [Quit: habitullence]
woollyams has quit [Ping timeout: 272 seconds]
woollyams has joined #bundler
kgrz_ has quit []
jacobat has quit [Ping timeout: 248 seconds]
jacobat has joined #bundler
habitullence has joined #bundler
habitullence has quit [Client Quit]
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #bundler
rb2k has joined #bundler
_ixti_ has joined #bundler
<jacobat> It seems vendor/cache is being used for both packaging and as runtime location for github gems. Is there some way to tell bundler to use another location for github gems at runtime?
<tmoore> I don't think so
chouhoulis has joined #bundler
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #bundler
<jacobat> Alright, thanks :)
<jacobat> It would be nice if you could keep the package and the runtime totally separate
chouhoulis has quit [Remote host closed the connection]
woollyams has quit [Ping timeout: 272 seconds]
chouhoulis has joined #bundler
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #bundler
chouhoulis has quit [Remote host closed the connection]
pglombardo has joined #bundler
jacobat has quit [Ping timeout: 260 seconds]
Pupeno_ has joined #bundler
Pupeno has quit [Ping timeout: 252 seconds]
chouhoulis has joined #bundler
chouhoul_ has joined #bundler
chouhoulis has quit [Ping timeout: 264 seconds]
jacobat has joined #bundler
rb2k has quit [Quit: rb2k]
rb2k has joined #bundler
slash_nick has joined #bundler
slash_nick has quit [Changing host]
jacobat has quit [Ping timeout: 255 seconds]
jacobat has joined #bundler
jacobat has quit [Client Quit]
pglombar_ has joined #bundler
pglombardo has quit [Ping timeout: 255 seconds]
briangonzalez has joined #bundler
briangonzalez has quit [Client Quit]
briangonzalez has joined #bundler
keymone has joined #bundler
<keymone> hi, how do i stop bundler from messing with shebangs?
<keymone> bundle install sets shebangs to #!/usr/bin/env ruby while gem install sets /opt/blah/bin/ruby which is exactly what i want
jaimef has quit [Excess Flood]
jaimef has joined #bundler
keymone has quit [Quit: Leaving.]
jaimef has quit [Excess Flood]
jottr has joined #bundler
jaimef has joined #bundler
x1337807x has joined #bundler
jottr_ has joined #bundler
jottr has quit [Ping timeout: 240 seconds]
havenwood has joined #bundler
jacobat has joined #bundler
havenwood has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #bundler
havenwood has quit [Ping timeout: 264 seconds]
jottr_ has quit [Ping timeout: 252 seconds]
x1337807x has joined #bundler
havenwood has joined #bundler
jacobat has quit [Quit: leaving]
jottr_ has joined #bundler
jaimef has quit [Excess Flood]
jaimef has joined #bundler
Cidan has quit [Ping timeout: 252 seconds]
Cidan has joined #bundler
rb2k has quit [Quit: rb2k]
axl_ has joined #bundler
woollyams has joined #bundler
woollyams has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
chouhoul_ has quit [Ping timeout: 252 seconds]
jaimef has quit [Excess Flood]
jaimef has joined #bundler
jaimef has quit [Excess Flood]
jaimef has joined #bundler
rb2k has joined #bundler
woollyams has joined #bundler
rb2k has quit [Ping timeout: 255 seconds]
rb2k has joined #bundler
jottr_ has quit [Ping timeout: 248 seconds]
dukedave has joined #bundler
<dukedave> In my Gemfile I have "git: URL", where URL is on GitHub and uses an oauth token, per: https://github.com/blog/1270-easier-builds-and-deployments-using-git-over-https-and-oauth
<dukedave> If I just 'git clone' using URL everything works as expected, but when I 'bundle install' it fails because, "Git error: command `git reset --hard SHA in directory DIR has failed`"
<dukedave> However if I cd in to DIR and 'git show', I see that HEAD is a few commits behind SHA, which explains why the reset fails
<dukedave> ... and ideas why bundle may not be getting the latest master?
Pupeno_ has quit [Remote host closed the connection]
<indirect> dukedave: try deleting the directory with the git repo and trying again?
<indirect> in general, bundler should be updating
<indirect> I've seen that happen after force pushes
<indirect> or when tags are deleted
jottr_ has joined #bundler
<indirect> you might need to nuke the entire base git repo, stored in $GEM_HOME/bundler/cache/
pglombardo_ has quit []
<dukedave> indirect: that was it, the latter one
<dukedave> Thanks :D
<dukedave> When in doubt, delete more :)
jottr_ has quit [Ping timeout: 252 seconds]