instructure / canvas-lms

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

Add dependency the specified version of switchman-inst-jobs in Gemfile #2083

Closed mayng0702 closed 10 months ago

mayng0702 commented 1 year ago

Summary:

How to solve the version of switchman-inst-jobs in Gemfile

Steps to reproduce:

  1. cd gems/plugins/academic_benchmark/
  2. nano academic_benchmark.gemspec
  3. Add (spec.add_dependency "switchman-inst-jobs", "4.0.9") line to academic_benchmark.gemspec

Expected behavior:

Add dependency the specified version of switchman-inst-jobs

Actual behavior:

<!--[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice
with different version requirements.
You specified: switchman-inst-jobs (= 4.0.8) and switchman-inst-jobs (= 4.0.9).
Bundler cannot continue.
# from /var/canvas/Gemfile.d/../gems/plugins/analytics/Gemfile.d/app.rb:26
# -------------------------------------------
# require File.expand_path("config/canvas_rails_switcher", __dir__)
>
# Dir.glob(File.join(File.dirname(__FILE__), "Gemfile.d", "*.rb")).sort.each
do |file|
# -------------------------------------------
ccutrer commented 10 months ago

I'm not sure what you're trying to accomplish here. switchman-inst-jobs is already listed in Gemfile.d/app.rb, so cannot be listed elsewhere.

mayng0702 commented 10 months ago

Noted with thanks. Thanks for your checking.

在 2023年8月27日週日 10:46,Cody Cutrer @.***> 寫道:

Closed #2083 https://github.com/instructure/canvas-lms/issues/2083 as not planned.

— Reply to this email directly, view it on GitHub https://github.com/instructure/canvas-lms/issues/2083#event-10201027516, or unsubscribe https://github.com/notifications/unsubscribe-auth/AONMLHBILUFEKOW7NT3ITL3XXKYIRANCNFSM56C6MDWA . You are receiving this because you authored the thread.Message ID: @.***>