-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Gemfile.lock parsing for dependency parser #1689
Conversation
Uses Bundler gem for parsing, parses only name for now, we should probably extract URL for repos.
2c0e323
to
8cb3145
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work. I asked a few questions and asked for some fairly minor changes. Slack me if you wanna chat about any of it.
def fetch_spec(name:, version: nil) | ||
full_spec = fetcher.fetch_spec([name, version]) | ||
{ name: full_spec.name, url: extract_url(full_spec), description: full_spec.description } | ||
rescue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there a class of error that triggered this specific rescue? I'm just curious. The other rescue looks like a "passed in the wrong file" kind of thing. I feel like we should capture this error too, but I'm not entirely sure what the failure modes that would trigger the rescue here are.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't found any. I can remove it, but it seems like it's better to log the failed spec instead of failing the entire file, we can at least get some log from it.
Any updates? This was pretty close to over the line. |
Hey, I'll finish it up today |
457706d
to
6497be9
Compare
6497be9
to
f728e55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Dependency parsing for #1686
Uses Bundler gem for parsing, parses only name for now, we should probably extract URL for repos.
Description
Related Issue
Motivation and Context
An initial stub to get the dependency parsing running
How Has This Been Tested?
Checklist: