Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the reasons for using the latest version? #157

Open
jseanj opened this issue Sep 13, 2021 · 0 comments
Open

What are the reasons for using the latest version? #157

jseanj opened this issue Sep 13, 2021 · 0 comments

Comments

@jseanj
Copy link

jseanj commented Sep 13, 2021

def resolve_activated_specs
        activated.vertices.each do |_, vertex|
          next unless vertex.payload

          latest_version = vertex.payload.possibilities.reverse_each.find do |possibility|
            vertex.requirements.all? { |req| requirement_satisfied_by?(req, activated, possibility) }
          end

          activated.set_payload(vertex.name, latest_version)
        end
        activated.freeze
end

I found that in the resolving dependency, the latest version is returned. What are the reasons for using the latest version?
If I want to use a minimum version that meets the conditions, what should I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant