Open hhugo opened 2 months ago
The following command should return all the packages we might want to install.
opam list --depends-on ocamlbuild --column name,version,all-versions -a --no-depexts | head -n-2 | sed 's/ */ /'g | awk -F' ' '{print $2==$NF?$1"."$2:""}' | grep -v "^$"
I was going to ask whether we can test only direct dependencies, not transitive dependencies. But in fact it looks like opam lists only direct dependencies, and needs --recursive
to also list transitive dependencies.
In addition to not testing packages that moved to dune in their later version, I think that a reasonable extra requirement to have would be to restrict to packages whose last release is at most N years old. It may be easier to write a script to precompute this list, and maybe think of refreshing it from times to times (it could be in our howto-release notes) than to compute it dynamically
(Hm: process
, last released in 2016, is a dependency of karamel
, released in 2023. So maybe my idea isn't so good.)
In particular, we could test all packages that depend on ocamlbuild in their latest version:
In the example above, we should test
abt