instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.41k stars 2.42k forks source link

Custom gemfile issues in ruby 3 under rvm #2296

Closed jondkelley closed 6 months ago

jondkelley commented 6 months ago

Summary:

Trying to follow the production start wiki, it leads to an installation that we can't use off the prod branch. https://github.com/instructure/canvas-lms/wiki/Production-Start

Steps to reproduce:

  1. rvm install ruby-3.0.0
  2. gem install bundler --version 2.4.19
  3. cd /var/canvas/
  4. bundle install

Expected behavior:

Installing gems

Actual behavior:


$ bundle install

[!] There was an error parsing `Gemfile`: syntax error, unexpected ',' -              active:,
                    ^
/var/canvas/Gemfile:46: syntax error, unexpected `end', expecting end-of-input
. Bundler cannot continue.

 #  from /var/canvas/Gemfile:40
 #  -------------------------------------------
 #      lockfile(lockfile,
 >               active:,
 #               parent:,
 #  -------------------------------------------

Additional notes:

$ bundle --version Bundler version 2.4.19

$ ruby --version ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]

jondkelley commented 6 months ago

This seems like an issue as Ruby 3.1 has changed drastically. I don't see a clear path for getting Ruby 3.1 under RVM however, so Debian may be a bad distro to run ruby on, will have to reconsider a good source to obtain Ruby 3.1