From 6383a5751b7dcd4dc189682a695cf271698813e8 Mon Sep 17 00:00:00 2001 From: Kamil Bukum Date: Tue, 29 Oct 2024 15:49:11 -0700 Subject: [PATCH] fix getting lockfile issue. --- npm_and_yarn/lib/dependabot/npm_and_yarn/package_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm_and_yarn/lib/dependabot/npm_and_yarn/package_manager.rb b/npm_and_yarn/lib/dependabot/npm_and_yarn/package_manager.rb index f60c22c5129..74b615f830c 100644 --- a/npm_and_yarn/lib/dependabot/npm_and_yarn/package_manager.rb +++ b/npm_and_yarn/lib/dependabot/npm_and_yarn/package_manager.rb @@ -160,7 +160,7 @@ def detect_package_manager def name_from_lockfiles # We prioritize the package manager that has a lockfile PACKAGE_MANAGER_CLASSES.each_key do |manager_name| # iterates keys in order as defined in the hash - return manager_name.to_s if @lockfiles[manager_name] + return manager_name.to_s if @lockfiles[manager_name.to_sym] end nil end