How does one pin/freeze a version of the dependencies of an opam project/package and then install the project with such specified dependencies?

From a quick glance at your requirements it looks like

opam switch export --freeze

is what you want.

You can then import everything with exactly the same commits with opam switch import

4 Likes