Sort the package list before installation.
from https://forum.unity.com/threads/git-support-on-package-manager.573673/page-3#post-4552084
As far as I can tell, the implementation is non-deterministic. Meaning that if you share your project with someone else, this other user risk to not have the same list of packages installed. (This could probably be fixed by the author by simply sorting the input array).
Sort the package list before installation.
from https://forum.unity.com/threads/git-support-on-package-manager.573673/page-3#post-4552084