How does the package manager decide which packages to prioritize when updating?

I noticed today that I was using two packages which conflicted such that only one could be fully updated at a time. If I ran ]up, package A would be updated and package B was left not updated, but I had to manually add package B at the latest version to update it, which downgraded package A.

I couldn’t find information in the Pkg.jl docs about why one was prioritized over the other by ]up, so I figured I’d ask here.

I am aware that I can pin packages or manually install specific versions and I don’t have any issues with how it works now; I’m just curious if it’s written somewhere how the prioritization process happens.

Thanks!

1 Like