-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Expand Centralized Ecosystem Format with Language Version Information for Bundler #10867
Conversation
2081402
to
98cf02d
Compare
98cf02d
to
301a5af
Compare
return bundler_version if package_manager.unsupported? | ||
|
||
# read raw version directly from the ecosystem environment | ||
bundler_raw_version = SharedHelpers.in_a_temporary_repo_directory( |
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.
Review Tip: When retrieving the full raw version of Bundler, note that if an unsupported Bundler version (e.g., "1"
) is specified, retrieving the raw version won’t be possible. In such cases, an "unsupported version" is getting raised error so we won't need to fetch the raw version.
def ruby_raw_version | ||
return @ruby_raw_version if defined?(@ruby_raw_version) | ||
|
||
ruby_raw_version = SharedHelpers.in_a_temporary_repo_directory( |
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.
Review Tip: We want to find the raw version for language directly from the ecosystem environment.
|
||
return nil unless package_manager.unsupported? | ||
|
||
Language.new(ruby_raw_version) |
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.
Review Tip: If the package manager is unsupported, the language version may not be retrievable. Additionally, fetching the language version is unnecessary, as the process will raise an unsupported package manager error.
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.
LGTM
What are you trying to accomplish?
This PR adds language version details for Bundler into the centralized ecosystem structure in Dependabot. The goal is to enhance consistency in representing package manager and language information across ecosystems.
Anything you want to highlight for special attention from reviewers?
This update follows the existing centralized format and extends it to include language versions for Bundler, laying the groundwork for other ecosystems like Composer and npm_and_yarn.
How will you know you've accomplished your goal?
Checklist