I think there are 3 options:
- Vendoring (ex.
git submodule
) - An opam lock file
- Using
opam repository add time-t --rank 1 'git+https://github.com/ocaml/opam-repository.git#GITREF_AT_TIME_T'
Of course, those assume the git repositories of dependencies don’t disappear.
Anyway, the third option is available to everybody at time t+N
, so IMHO reducing the t+N
set of available packages sounds desirable.