我正在構建這個目前私有的寶石,但稍後將會開放源代碼。我有spec.add_dependency 'hashie', '~> 3.3.2'
。Bundler無法找到兼容版本的寶石
當我的應用程序使用的寶石,我得到:
Bundler could not find compatible versions for gem "hashie":
In Gemfile:
desk (~> 1.0.4) ruby depends on
hashie (~> 2.1) ruby
my_gem (>= 0) ruby depends on
hashie (3.3.2)
我怎麼去解決這樣的問題?
一種方法是取消鎖~> 3.3.2
哪些工作,但我不喜歡這樣做。
我試過從應用程序中刪除Gemfile.lock
並運行bundle install/update
,但那也不起作用。