You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While parsing the dependencies for any JS based repos using npm or yarn, dependabot-core only maintains a single version for any dependency (from the logic in this code segment:
) even though the repo might have multiple versions of the dependency. Therefore, this allows only updating a particular version of a dependency in a repo. Although this does'nt impact much in case of regular dependency updates, it poses a challenge while updating security vulnerabilities associated with any dependency via dependabot as it is possible that if multiple versions exist for a dependency, the vulnerable version might not be recognised by dependabot and hence won't be updated. Couple of questions which i had on this are -
Could you explain the logic in the combined_dependency function in this code segment:
. Is it based on some theory of how npm and yarn package managers work or is it just a custom implementation of dependabot?
What is the reason behind parsing and updating just a single version of any dependency? Is it the complexity of implementation for multiple version or some other known fact or point that i might be missing?
jeffwidman
changed the title
Dependabot recognises single version of a dependency in a repo
Dependabot doesn't properly manage multiple versions of a npm dependency in a repo
Sep 17, 2022
While parsing the dependencies for any JS based repos using npm or yarn, dependabot-core only maintains a single version for any dependency (from the logic in this code segment:
dependabot-core/common/lib/dependabot/file_parsers/base/dependency_set.rb
Line 59 in d6930a0
combined_dependency
function in this code segment:dependabot-core/common/lib/dependabot/file_parsers/base/dependency_set.rb
Line 59 in d6930a0
@jurre Let me know your thoughts on these!
The text was updated successfully, but these errors were encountered: