Skip to content

Commit

Permalink
Update error message matching (dependabot#8408)
Browse files Browse the repository at this point in the history
* Update error message matching

I believe this error string never really matched the output. We could maybe find a more specific regex, but I think this is sufficient.

* lint...
  • Loading branch information
pavera authored Nov 21, 2023
1 parent 8020bf4 commit e40f942
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ def handle_yarn_lock_updater_error(error, yarn_lock)
# Local path error: When installing a git dependency which
# is using local file paths for sub-dependencies (e.g. unbuilt yarn
# workspace project)
sub_dep_local_path_err = 'Package "" refers to a non-existing file'
sub_dep_local_path_err = "refers to a non-existing file"
if error_message.match?(INVALID_PACKAGE) ||
error_message.start_with?(sub_dep_local_path_err)
error_message.include?(sub_dep_local_path_err)
raise_resolvability_error(error_message, yarn_lock)
end

Expand Down

0 comments on commit e40f942

Please sign in to comment.