class Dependabot::Uv::UpdateChecker::PipCompileVersionResolver
def requirement_map
def requirement_map child_req_regex = Uv::FileFetcher::CHILD_REQUIREMENT_REGEX @requirement_map ||= pip_compile_files.each_with_object({}) do |file, req_map| paths = file.content.scan(child_req_regex).flatten current_dir = File.dirname(file.name) req_map[file.name] = paths.map do |path| path = File.join(current_dir, path) if current_dir != "." path = Pathname.new(path).cleanpath.to_path path = path.gsub(/\.txt$/, ".in") next if path == file.name path end.uniq.compact end end