<bobthecow>
ddfreyne: did something change in the last release or two about the way gemfiles are used?
<ddfreyne>
bobthecow: No, why?
<ddfreyne>
bobthecow: nanoc 4.0 removes Bundler integration completely, requiring "bundle exec" (since that solves some issues with the nanoc version not being specified correctly etc)
<bobthecow>
something isn't building anymore, and i'm not sure which gem update broke it.
<bobthecow>
i've got a nanoc site in a subdirectory of a project, and the Gemfile is in the parent directory.
<bobthecow>
but nanoc's (now) trying to find the Gemfile in its own root.
<bobthecow>
it worked before, but is broken now, and i'm not entirely sure why.
<ddfreyne>
OH, weird... does bundle exec do the trick?
<bobthecow>
i'm pretty sure it is being bundle exec'd.
<bobthecow>
yeah, it's being bundle exec'd
<bobthecow>
it's running through a rake task though. mebbe that's it.
VitamineD has joined #nanoc
<bobthecow>
yeah. that fixed it.
<bobthecow>
i was bundle execing the rake task...
<bobthecow>
but inside the rake task it was just doing `system 'nanoc', 'compile'` :)
<bobthecow>
adding another layer of bundle exec fixx0rd all that.
<bobthecow>
oh just kidding. that definitely failed too.
<bobthecow>
boo.
pavelkunc1 has quit [Quit: Leaving.]
<ddfreyne>
:/
<gregkare>
Can you make a gist of the error you're getting?
<bobthecow>
gregkare: not really, because it's not happening locally, just on deploy.
<bobthecow>
/tmp/build_bac39edc-1efd-47cf-baa3-fbaae6cc72f2/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.2/lib/bundler/definition.rb:16:in `build': /tmp/build_bac39edc-1efd-47cf-baa3-fbaae6cc72f2/static/Gemfile not found (Bundler::GemfileNotFound)
<bobthecow>
that's it.
<bobthecow>
it's during nanoc compilation.
<bobthecow>
that's looking for Gemfile in /static/, but the gemfile actually lives in the parent directory.
<bobthecow>
used to work, doesn't now :)
<bobthecow>
(/static/ is my nanoc site, it's running from a subdirectory of my project)
<gregkare>
You can use the BUNDLE_GEMFILE environment variable to set the path to your Gemfile
<bobthecow>
bundler already knows where the gemfile is. it executed nanoc using `bundle exec nanoc compile`
<gregkare>
Why is it looking for the Gemfile in ./static then?
<bobthecow>
i have no idea.
<bobthecow>
that's what i'm wondering.
<gregkare>
You need to set BUNDLE_GEMFILE to the Gemfile inside the root path in your Rakefile
<bobthecow>
i can do that. but what changed? i didn't have to before.
<gregkare>
I don't know, I haven't followed what changed in nanoc, sorry :/
<gregkare>
I'm just trying to help because Bundler is confusing
<bobthecow>
i promise i know how to use bundler. been using it for years :)
<bobthecow>
i looked through the nanoc commit history and didn't see anything in the last couple of versions that messed with it.
<gregkare>
You could also not shell-out and just use nanoc's runners I guess
<bobthecow>
true.
<bobthecow>
i did that before, but it had issues with not running in the root directory of the project.
<bobthecow>
^ i don't see anything in there which could have changed it.
<gregkare>
Yup, I was looking at the same thing :/
<bobthecow>
and i'm using the same (outdated) version of bundler.
<bobthecow>
mebbe rake changed?
<gregkare>
That's possible yeah, didn't you lock its version?
<bobthecow>
it's hosted on heroku, everything's version locked to something :P
<bobthecow>
looks like adding a gemfile env variable fixed things.
<bobthecow>
or at least made things crappy and broken in a different way.
<bobthecow>
now apparently shelling out to nanoc is loading the wrong ruby version.
<gregkare>
Woah
<bobthecow>
/tmp/build_19961f68-0785-4074-a6f5-c61211617e2e/vendor/bundle/ruby/1.9.1/gems/bundler-1.3.2/lib/bundler/definition.rb:361:in `validate_ruby!': Your Ruby version is 1.9.2, but your Gemfile specified 1.9.3 (Bundler::RubyVersionMismatch)
<bobthecow>
wheee
yogsototh has quit [Remote host closed the connection]
pavelkunc has joined #nanoc
<ddfreyne>
haha
<ddfreyne>
Ruby can get a bit... icky at times.
<bobthecow>
yep yep.
<ddfreyne>
This is why I like go!
<ddfreyne>
Anyway, sleep time. Seeya!
<gregkare>
Good night!
jugglinmike has quit [Quit: Leaving.]
<bobthecow>
gregkare: got it sorted by passing PATH in as an ENV hack as well.
<gregkare>
Pass all the env variables! :D
<bobthecow>
no, i had to make up a new PATH to keep it from freaking otu.
<bobthecow>
s/otu/out/
<gregkare>
Oooh, maybe that's also part of what Bundler.with_clean_env does
<gregkare>
Anyway, that seemed painful, glad you found a work around
_whitelogger_ has joined #nanoc
_whitelogger has quit [Read error: Connection reset by peer]