rubyonjets / jets

Ruby on Jets
http://rubyonjets.com
MIT License
2.6k stars 181 forks source link

`jets new demo` requires "rake-13.0.1" #485

Closed bigwheel closed 1 year ago

bigwheel commented 4 years ago

Checklist

My Environment

Software Version
Operating System macOS Mojave (10.14.5)
Jets 2.3.16
Ruby ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-darwin18] (rbenv)

Expected Behaviour

Success of jets new demo

Current Behavior

Fails on the way.

Detail: jets_new_log

Step-by-step reproduction instructions

I do just Quick Start - Jets Ruby Serverless Framework.

  1. By a MacBook Pro A1990
  2. Install rbenv
  3. Install ruby 2.5.8 by rbenv
  4. Restart Shell
  5. Install jets
  6. Restart Shell
  7. jets new demo

Code Sample

jets new demo

Solution Suggestion

This may be a matter of dependency declaration.

bigwheel commented 4 years ago

Im understanding why this happens.

$% cat ~/.bundle/config
---
BUNDLE_PATH: "vendor/bundle"

https://github.com/tongueroo/jets/blob/0df7fc93/lib/jets/commands/new.rb#L65-L87

bundle install executes with BUNDLE_IGNORE_CONFIG, but bundle exec jets webpacker:install does not.

This could be considered as my environment problem. But it seems like BUNDLE_IGNORE_CONFIG inconsistency problem.

johnreitano commented 3 years ago

I hit this same issue. I worked around the issue by temporarily commenting out the contents of ~/.bundle/config .

bigwheel commented 3 years ago

Me too.

chase439 commented 3 years ago

Thank you for the hints, as I was using Cloud9, I had to remove my personal ~/.bundle/config, install and use Ruby 2.7 and install latest bundler to get it to work.

mathieujobin commented 3 years ago

it could help if it was supported to add jets to our Gemfile

bigwheel commented 1 year ago

stall