Code Monkey home page Code Monkey logo

Comments (8)

stevenh512 avatar stevenh512 commented on June 5, 2024

Works for me, what version of Bundler are you having this problem with? The solution you got from wycats (bundling rake and using "bundle exec rake") will work, but it shouldn't be necessary as long as the Bundler environment is being properly set up in the Rakefile. If not then we'd have to use "bundle exec rake" with our Rails 3 apps too, and I've never run into a case where I needed to do that.

from octopress.

halfbyte avatar halfbyte commented on June 5, 2024

Hm. Seems to be one of the differences of 0.9 vs. 1.0.

I could construct an edgecase where a blank ruby install, combined with the --deployment flag would make it neccessary to call rake via bundle exec. Exactly what the chances are that something like that happens - Well, beats me.

Still, rake is, I think, a valid dependency. I'll rollback the doc change, though.

from octopress.

stevenh512 avatar stevenh512 commented on June 5, 2024

I agree, rake is a valid dependency.. but even though there might be a few edge cases, in general I don't think "bundle exec rake" should be needed if the Bundler environment is set up in the Rakefile. I can't speak for carlhuda or wycats (or any of the other Bundler developers), but personally I think if the only way to fix this is "bundle exec rake" I'd call that a bug or regression in Bundler.

from octopress.

stevenh512 avatar stevenh512 commented on June 5, 2024

oops.. of course I meant carllerche and wycats :)

from octopress.

imathis avatar imathis commented on June 5, 2024

Sorry, just catching up here. What's the consensus here? Add rake as a dependency in the Gemfile?

from octopress.

stevenh512 avatar stevenh512 commented on June 5, 2024

I'd like to know why Bundler isn't handling the situation where the Bundler environment is set up in the Rakefile, but that isn't really your problem, if it bothers enough people I'm sure someone will report it as a Bundler bug. I don't see any problem with adding rake as a dependency in the Gemfile, it is a valid dependency and it allows people to use "bundle exec rake" if they need to.

from octopress.

halfbyte avatar halfbyte commented on June 5, 2024

Okay, so I've been chatting with Yehuda on this (we happen to be on the same conference right now), so I hope to have fully understood now how this works.

Bundler 1.0 IS actually handling this normally - 0.9 doesn't - but then again, that's probably irrelevant (although that's the current "stable" version, at least for a few days).

As I said, I am able to construct an edge case where a simple rake won't work (simply, because there isn't a rake binary in the PATH) and subsequently a bundle exec rake would fix things - if rake is added as a dep.

I'd vote for adding rake as a dep, but seriously basically this issue is largely my fault of trying to use octopress with an "old" bundler version. Duh.

from octopress.

imathis avatar imathis commented on June 5, 2024

Thanks for hound doggin' this for us. How about this? :)
http://github.com/imathis/octopress/commit/a9eb0781193f7eb5f3635d8124de6fc4e342a000

from octopress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.