Reputation: 2264
I am setting a new app, stack is:
ruby: 2.6.1 (using rvm)
rails: 5.2.2
bundler: 2.0.1
Now thing is, bundler 2 doesn't use Gemfile
at all, i have proper gems.rb
and gems.locked
and everything was working properly until i pulled some code from a co-worker which got merged.
Issue is whenever i run any rake
or rails
command i get this error:
/path/to/proj/Gemfile not found
I then even tried going back to old master when that code was not merged and issue is still there. So it is probably not something in the code i pulled. And issue seems persistent in different machines.
I know there are other issues which have similar errors of Gemfile not found
but those are mostly those which had wrong directory opened or some gem issued fixed by bundle update
or gem update
type commands, this is not that issue because. This is something else, because bundler 2 doesn't even need Gemfile
.
Upvotes: 0
Views: 258
Reputation: 683
It looks like rails doesn't support using gems.rb
and gems.locked
. https://github.com/rails/rails/issues/31295
You could try what that guy did and edit some files, or you could rename your gems.rb
back to Gemfile
and gems.locked
back to Gemfile.lock
Upvotes: 1