Closed etagwerker closed 5 years ago
@etagwerker did you mean to open this issue in https://github.com/ombulabs/rubymem.com ?
@bronzdoc My bad, I just updated the issue. I'm trying to do a basic git clone
+ bundle exec rake
and it is not working :(
@bronzdoc I'm still getting failures when I do a clean install + ./bin/setup
(using #23)
Failures:
1) CLI when auditing a bundle with unpatched gems should print a warning
Failure/Error: expect(subject).to include("Leaks found!")
expected "/Users/etagwerker/Projects/rubymem/bundler-leak/lib/bundler/plumber/scanner.rb:61:in `read': No such...:in `load'\n\tfrom /Users/etagwerker/Projects/rubymem/bundler-leak/bin/bundler-leak:3:in `<main>'\n" to include "Leaks found!"
Diff:
@@ -1,2 +1,12 @@
-Leaks found!
+/Users/etagwerker/Projects/rubymem/bundler-leak/lib/bundler/plumber/scanner.rb:61:in `read': No such file or directory @ rb_sysopen - /Users/etagwerker/Projects/rubymem/bundler-leak/spec/bundle/unpatched_gems/Gemfile.lock (Errno::ENOENT)
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/lib/bundler/plumber/scanner.rb:61:in `initialize'
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/lib/bundler/plumber/cli.rb:41:in `new'
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/lib/bundler/plumber/cli.rb:41:in `check'
+ from /Users/etagwerker/.rvm/gems/ruby-2.6.3/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
+ from /Users/etagwerker/.rvm/gems/ruby-2.6.3/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
+ from /Users/etagwerker/.rvm/gems/ruby-2.6.3/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
+ from /Users/etagwerker/.rvm/gems/ruby-2.6.3/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/bin/bundle-leak:10:in `<top (required)>'
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/bin/bundler-leak:3:in `load'
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/bin/bundler-leak:3:in `<main>'
# ./spec/integration_spec.rb:19:in `block (3 levels) in <top (required)>'
2) CLI when auditing a bundle with unpatched gems should print advisory information for the leaky gems
Failure/Error: expect(subject).to match(advisory_pattern)
expected "/Users/etagwerker/Projects/rubymem/bundler-leak/lib/bundler/plumber/scanner.rb:61:in `read': No such...:in `load'\n\tfrom /Users/etagwerker/Projects/rubymem/bundler-leak/bin/bundler-leak:3:in `<main>'\n" to match /(Name: [^\n]+
Version: \d+.\d+.\d+
URL: https?:\/\/(www\.)?.+
Title: [^\n]*?
Solution: upgrade to (~>|>=) \d+\.\d+\.\d+(\.\d+)?(, (~>|>=) \d+\.\d+\.\d+(\.\d+)?)*[\s\n]*?)/
Diff:
@@ -1,6 +1,12 @@
-/(Name: [^\n]+
-Version: \d+.\d+.\d+
-URL: https?:\/\/(www\.)?.+
-Title: [^\n]*?
-Solution: upgrade to (~>|>=) \d+\.\d+\.\d+(\.\d+)?(, (~>|>=) \d+\.\d+\.\d+(\.\d+)?)*[\s\n]*?)/
+/Users/etagwerker/Projects/rubymem/bundler-leak/lib/bundler/plumber/scanner.rb:61:in `read': No such file or directory @ rb_sysopen - /Users/etagwerker/Projects/rubymem/bundler-leak/spec/bundle/unpatched_gems/Gemfile.lock (Errno::ENOENT)
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/lib/bundler/plumber/scanner.rb:61:in `initialize'
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/lib/bundler/plumber/cli.rb:41:in `new'
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/lib/bundler/plumber/cli.rb:41:in `check'
+ from /Users/etagwerker/.rvm/gems/ruby-2.6.3/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
+ from /Users/etagwerker/.rvm/gems/ruby-2.6.3/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
+ from /Users/etagwerker/.rvm/gems/ruby-2.6.3/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
+ from /Users/etagwerker/.rvm/gems/ruby-2.6.3/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/bin/bundle-leak:10:in `<top (required)>'
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/bin/bundler-leak:3:in `load'
+ from /Users/etagwerker/Projects/rubymem/bundler-leak/bin/bundler-leak:3:in `<main>'
# ./spec/integration_spec.rb:29:in `block (3 levels) in <top (required)>'
3) Bundler::Plumber::Scanner#scan should yield results
Failure/Error: File.read(File.join(@root,gemfile_lock))
Errno::ENOENT:
No such file or directory @ rb_sysopen - /Users/etagwerker/Projects/rubymem/bundler-leak/spec/bundle/unpatched_gems/Gemfile.lock
# ./spec/scanner_spec.rb:9:in `new'
# ./spec/scanner_spec.rb:9:in `block (3 levels) in <top (required)>'
# ./spec/scanner_spec.rb:14:in `block (3 levels) in <top (required)>'
4) Bundler::Plumber::Scanner#scan when not called with a block should return an Enumerator
Failure/Error: File.read(File.join(@root,gemfile_lock))
Errno::ENOENT:
No such file or directory @ rb_sysopen - /Users/etagwerker/Projects/rubymem/bundler-leak/spec/bundle/unpatched_gems/Gemfile.lock
# ./spec/scanner_spec.rb:9:in `new'
# ./spec/scanner_spec.rb:9:in `block (3 levels) in <top (required)>'
# ./spec/scanner_spec.rb:21:in `block (4 levels) in <top (required)>'
5) Bundler::Plumber::Scanner when auditing a bundle with unpatched gems should match unpatched gems to their advisories
Failure/Error: File.read(File.join(@root,gemfile_lock))
Errno::ENOENT:
No such file or directory @ rb_sysopen - /Users/etagwerker/Projects/rubymem/bundler-leak/spec/bundle/unpatched_gems/Gemfile.lock
# ./spec/scanner_spec.rb:29:in `new'
# ./spec/scanner_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/scanner_spec.rb:31:in `block (3 levels) in <top (required)>'
# ./spec/scanner_spec.rb:34:in `block (3 levels) in <top (required)>'
6) Bundler::Plumber::Scanner when auditing a bundle with unpatched gems when the :ignore option is given should ignore the specified advisories
Failure/Error: File.read(File.join(@root,gemfile_lock))
Errno::ENOENT:
No such file or directory @ rb_sysopen - /Users/etagwerker/Projects/rubymem/bundler-leak/spec/bundle/unpatched_gems/Gemfile.lock
# ./spec/scanner_spec.rb:29:in `new'
# ./spec/scanner_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/scanner_spec.rb:40:in `block (4 levels) in <top (required)>'
# ./spec/scanner_spec.rb:43:in `block (4 levels) in <top (required)>'
Finished in 2.05 seconds (files took 0.24103 seconds to load)
44 examples, 6 failures
Failed examples:
rspec ./spec/integration_spec.rb:18 # CLI when auditing a bundle with unpatched gems should print a warning
rspec ./spec/integration_spec.rb:22 # CLI when auditing a bundle with unpatched gems should print advisory information for the leaky gems
rspec ./spec/scanner_spec.rb:11 # Bundler::Plumber::Scanner#scan should yield results
rspec ./spec/scanner_spec.rb:20 # Bundler::Plumber::Scanner#scan when not called with a block should return an Enumerator
rspec ./spec/scanner_spec.rb:33 # Bundler::Plumber::Scanner when auditing a bundle with unpatched gems should match unpatched gems to their advisories
rspec ./spec/scanner_spec.rb:42 # Bundler::Plumber::Scanner when auditing a bundle with unpatched gems when the :ignore option is given should ignore the specified advisories
Coverage report generated for RSpec to /Users/etagwerker/Projects/rubymem/bundler-leak/coverage. 309 / 358 LOC (86.31%) covered.
SimpleCov failed with exit 1%
Do you know why that could be happening?
My bad, this was happening when I run bundle exec rspec
for the very first time.
When I run bundle exec rake
it works fine. Any follow-up calls to bundle exec rspec
work as well.
When I clone the project and I run
./bin/setup
, I get this error:Maybe the script is missing a few steps?