Skip to content

nuget: fix PR missing commits in message when using private registry#5072

Merged
jakecoffman merged 5 commits intomainfrom
jakecoffman/nuget-repo-from-private
May 4, 2022
Merged

nuget: fix PR missing commits in message when using private registry#5072
jakecoffman merged 5 commits intomainfrom
jakecoffman/nuget-repo-from-private

Conversation

@jakecoffman
Copy link
Copy Markdown
Member

We reverted #5002 because it introduced some new errors, so this is #5002 plus some additional error handling and tests.

I left in some TODOs to ask the question: should we log? I haven't seen any other log messages in core yet so I wanted to see if we could log at all. If we are eating exceptions and don't log, we are going to spend more time investigating issues that end up to be working as expected.

Ruby style feedback is welcome as well!

@jakecoffman jakecoffman requested a review from a team as a code owner April 29, 2022 18:09
# Conflicts:
#	nuget/lib/dependabot/nuget/metadata_finder.rb
#	nuget/spec/dependabot/nuget/metadata_finder_spec.rb
Copy link
Copy Markdown
Contributor

@brrygrdn brrygrdn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, otherwise this LGTM

end
end
# failed to find a source URL
nil
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a rescue JSON::ParserError to this method or move the rescue up into src_repo_from_project to handle both extract_ methods?

I'm just thinking that while a registry switching from JSON to not-JSON between endpoints would be surprising, it could happen if we hit some kind of error that returned arbitrary content from the remote stack.

Copy link
Copy Markdown
Contributor

@brrygrdn brrygrdn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jakecoffman jakecoffman merged commit f87fba0 into main May 4, 2022
@jakecoffman jakecoffman deleted the jakecoffman/nuget-repo-from-private branch May 4, 2022 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants