[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help with yard 0.9.24 -- specs in autopkgtest not finding yard...




On 2020, ഫെബ്രുവരി 27 4:22:49 AM IST, "Cédric Boutillier" <boutil@debian.org> wrote:
>
>Dear list,
>
>I was trying to update the yard package to add support for ruby2.7, but
>I ran into some issues.
>
>The most important one is that the "yard" library is not found when I
>run the autopkgtests. Here is a piece of the log below:
>
>---8<------------
>┌──────────────────────────────────────────────────────────────────────────────┐
>│ Run tests for ruby2.5 from debian/ruby-tests.rake                    
>       │
>└──────────────────────────────────────────────────────────────────────────────┘
>
>mv lib .gem2deb.lib
>RUBYLIB=. GEM_PATH= ruby2.5 -S rake -f debian/ruby-tests.rake
>/usr/bin/ruby2.5
>-I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.2/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.1/lib
>/usr/share/rubygems-integration/all/gems/rspec-core-3.9.1/exe/rspec
>--pattern ./spec/\*\*/\*_spec.rb --format documentation
>
>An error occurred while loading spec_helper. - Did you mean?
>                    rspec ./spec/spec_helper.rb
>
>Failure/Error: require 'yard'
>
>LoadError:
>  cannot load such file -- yard
># ./spec/spec_helper.rb:17:in `require'
># ./spec/spec_helper.rb:17:in `<top (required)>'
>
>An error occurred while loading spec_helper. - Did you mean?
>                    rspec ./spec/spec_helper.rb
>
>Failure/Error: require 'yard'
>
>LoadError:
>  cannot load such file -- yard
># ./spec/spec_helper.rb:17:in `require'
># ./spec/spec_helper.rb:17:in `<top (required)>'
>No examples found.
>No examples found.
>------->8-----------------
>
>yard (and rspec) are installed using the gem layout.
>Running the command
>"/usr/bin/ruby2.5 -I/usr/share/rubygems-integration [...] --format
>documentation"
>from my system with the new package install works.
>
>I have no clue. Does any one have an idea?
>I pushed my changes in the `yard` repo on salsa.

I think it is using bundler. So you need to patch Gemfile and add yard at least for autopkgtest (if ENV['AUTOPKGTEST_TMP']). I have seen similar errors.

>Thanks in advance.
>
>Cédric

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Reply to: