From 77bd32723fb202b9ec4861574347d258c446162f Mon Sep 17 00:00:00 2001 From: Tom Christensen Date: Tue, 21 Nov 2023 14:09:30 -0700 Subject: [PATCH] Add a handled error for missing tags (#8389) In the case of git dependencies, if the version is not tagged correctly the error is not caught as a resolvability error. This adds handling for the error message if a release is not tagged as expected. --- .../npm_and_yarn/file_updater/yarn_lockfile_updater.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/npm_and_yarn/lib/dependabot/npm_and_yarn/file_updater/yarn_lockfile_updater.rb b/npm_and_yarn/lib/dependabot/npm_and_yarn/file_updater/yarn_lockfile_updater.rb index f1dc84cb68..56c1b8fc47 100644 --- a/npm_and_yarn/lib/dependabot/npm_and_yarn/file_updater/yarn_lockfile_updater.rb +++ b/npm_and_yarn/lib/dependabot/npm_and_yarn/file_updater/yarn_lockfile_updater.rb @@ -295,7 +295,8 @@ def handle_yarn_lock_updater_error(error, yarn_lock) handle_timeout(error_message, yarn_lock) if error_message.match?(TIMEOUT_FETCHING_PACKAGE) if error_message.start_with?("Couldn't find any versions") || - error_message.include?(": Not found") + error_message.include?(": Not found") || + error_message.include?("Couldn't find match for") raise_resolvability_error(error_message, yarn_lock) unless resolvable_before_update?(yarn_lock)