mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Created Ubuntu bundler broken due to ruby-thor dependency - explanation and workaround (markdown)
parent
dcd2c59ed1
commit
64c75fe9a1
1 changed files with 58 additions and 0 deletions
|
|
@ -0,0 +1,58 @@
|
|||
<p>As explained here</p>
|
||||
<p>
|
||||
<a href="https://bugs.launchpad.net/ubuntu/+source/ruby-thor/+bug/1885424">https://bugs.launchpad.net/ubuntu/+source/ruby-thor/+bug/1885424</a>
|
||||
</p>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p>the following change on the files has broken their magic...</p>
|
||||
<p>-----------------------------------------------------------------------------</p>
|
||||
<p>/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendored_molinillo.rb</p>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p>--- a/lib/bundler/vendored_molinillo.rb</p>
|
||||
<p>+++ b/lib/bundler/vendored_molinillo.rb</p>
|
||||
<p>@@ -1,4 +1,4 @@</p>
|
||||
<p> # frozen_string_literal: true</p>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p> module Bundler; end</p>
|
||||
<p>-require_relative "vendor/molinillo/lib/molinillo"</p>
|
||||
<p>+require "molinillo"</p>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p>-----------------------------------------------------------------------------</p>
|
||||
<p>/usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendored_thor.rb</p>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p>--- a/lib/bundler/vendored_thor.rb</p>
|
||||
<p>+++ b/lib/bundler/vendored_thor.rb</p>
|
||||
<p>@@ -2,7 +2,7 @@</p>
|
||||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p> module Bundler</p>
|
||||
<p> def self.require_thor_actions</p>
|
||||
<p>- require_relative "vendor/thor/lib/thor/actions"</p>
|
||||
<p>+ require "thor/actions"</p>
|
||||
<p> end</p>
|
||||
<p> end</p>
|
||||
<p>-require_relative "vendor/thor/lib/thor"</p>
|
||||
<p>+require "thor"</p>
|
||||
<p>-----------------------------------------------------------------------------</p>
|
||||
<p>you can revert the changes or the files from the master branch of github <span class="nolink"> <span class="nolink"> <span class="nolink"> <a href="https://github.com/rubygems/rubygems">https://github.com/rubygems/rubygems</a> </span> </span> </span>
|
||||
</p>
|
||||
<p>
|
||||
<span class="nolink"> </span>also you need to copy from the master branch the directories</p>
|
||||
<p>vendor/thor and vendor/molinillo</p>
|
||||
<p>
|
||||
<span class="nolink">into the <span class="nolink">directory</span> /usr/share/rubygems-integration/all/gems/bundler-2.1.4/lib/bundler/vendor <br/> </span>
|
||||
</p>
|
||||
<p>------------</p>
|
||||
Loading…
Add table
Add a link
Reference in a new issue