class Dependabot::Uv::UpdateChecker
def unlocked_requirement_string
def unlocked_requirement_string lower_bound_req = updated_version_req_lower_bound # Add the latest_version as an upper bound. This means # ignore conditions are considered when checking for the latest # resolvable version. # # NOTE: This isn't perfect. If v2.x is ignored and v3 is out but # unresolvable then the `latest_version` will be v3, and # we won't be ignoring v2.x releases like we should be. return lower_bound_req if latest_version.nil? return lower_bound_req unless Uv::Version.correct?(latest_version) lower_bound_req + ",<=#{latest_version}" end