Skip to content

Commit

Permalink
Do not parse indirect go mod dependencies as we cannot update them
Browse files Browse the repository at this point in the history
  • Loading branch information
jurre committed Dec 21, 2020
1 parent c66f38a commit 7265bd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go_modules/lib/dependabot/go_modules/file_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def parse
dependency_set = Dependabot::FileParsers::Base::DependencySet.new

required_packages.each do |dep|
dependency_set << dependency_from_details(dep)
dependency_set << dependency_from_details(dep) unless dep["Indirect"]
end

dependency_set.dependencies
Expand Down
2 changes: 1 addition & 1 deletion go_modules/spec/dependabot/go_modules/file_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
describe "parse" do
subject(:dependencies) { parser.parse }

its(:length) { is_expected.to eq(5) }
its(:length) { is_expected.to eq(3) }

describe "top level dependencies" do
subject(:dependencies) do
Expand Down

0 comments on commit 7265bd9

Please sign in to comment.