question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

latest version gives: undefined method `repo' for nil:NilClass

See original GitHub issue

our weekly automated dependabot pipelines started to give the following error this weekend. No PRs are created anymore.

/home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-nuget-0.182.0/lib/dependabot/nuget/metadata_finder.rb:64:in `block in extract_source_repo': undefined method `repo' for nil:NilClass (NoMethodError)
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-nuget-0.182.0/lib/dependabot/nuget/metadata_finder.rb:59:in `each'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-nuget-0.182.0/lib/dependabot/nuget/metadata_finder.rb:59:in `extract_source_repo'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-nuget-0.182.0/lib/dependabot/nuget/metadata_finder.rb:48:in `src_repo_from_project'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-nuget-0.182.0/lib/dependabot/nuget/metadata_finder.rb:21:in `look_up_source'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.182.0/lib/dependabot/metadata_finders/base.rb:123:in `source'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.182.0/lib/dependabot/metadata_finders/base.rb:25:in `source_url'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.182.0/lib/dependabot/pull_request_creator/message_builder.rb:357:in `source_url'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.182.0/lib/dependabot/pull_request_creator/message_builder.rb:282:in `block in dependency_links'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.182.0/lib/dependabot/pull_request_creator/message_builder.rb:281:in `map'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.182.0/lib/dependabot/pull_request_creator/message_builder.rb:281:in `dependency_links'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.182.0/lib/dependabot/pull_request_creator/message_builder.rb:203:in `version_commit_message_intro'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.182.0/lib/dependabot/pull_request_creator/message_builder.rb:129:in `commit_message_intro'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.182.0/lib/dependabot/pull_request_creator/message_builder.rb:55:in `commit_message'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.182.0/lib/dependabot/pull_request_creator.rb:172:in `azure_creator'
	from /home/dependabot/dependabot-script/vendor/ruby/2.7.0/gems/dependabot-common-0.182.0/lib/dependabot/pull_request_creator.rb:104:in `create'
	from ./update-script.rb:427:in `block in <main>'
	from ./update-script.rb:272:in `each'
	from ./update-script.rb:272:in `<main>'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
OneCyruscommented, May 6, 2022

with 0.6.1 it works again. perfect!

looks like they reverted a PR related to nuget in the core. https://github.com/dependabot/dependabot-core/pull/5040

1reaction
OneCyruscommented, May 2, 2022

just verified with setting the docker image to 0.5.19. this works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Regarding undefined method `map' for nil:NilClass ...
I'm having an error regarding my Flutter application. When I run the "flutter run" script in terminal, I'm getting the following error from ......
Read more >
undefined method `full_name' for nil:NilClass bug that ...
I'm posting into the following toggles all the details I have about this. Part of the Release.yml (Github Action).
Read more >
Trying to enable a repository returns "undefined method ` ...
Trying to enable a repository returns "undefined method `substitutor' for nil:NilClass" ... No translations currently exist. Issue. When trying to ...
Read more >
undefined method `name' for nil:NilClass
You have an error that name is pointing at nothing, or nil:NilClass . So there could be something wrong with the way you've...
Read more >
undefined method `repository_href' for nil:NilClass" - Support
I am working on a patch I can give you to tell us what repo it is looking for. Upon talking to another...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found