Skip to content

Commit

Permalink
Add a handled error for missing tags
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pavera committed Nov 14, 2023
1 parent ffd6031 commit f2db961
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f2db961

Please sign in to comment.