Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the revdeps counter more accurate of actual (recent) use #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions opam-health-check.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ depends: [
"cohttp-lwt"
"cohttp-lwt-unix"
"containers" {>= "3.4"}
"ocaml-version"
"opam-core"
"opam-format"
"mirage-crypto-pk" {>= "0.7.0"}
Expand Down
5 changes: 3 additions & 2 deletions server/backend/check.ml
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,9 @@ module Pkg_set = Set.Make (String)

let revdeps_script pkg =
let pkg = Filename.quote pkg in
{|opam list --color=never -s --recursive --depopts --depends-on |}^pkg^{| && \
opam list --color=never -s --with-test --with-doc --depopts --depends-on |}^pkg
let latest_ocaml = Ocaml_version.to_string Ocaml_version.Releases.latest in
{|opam list --color=never -s --recursive --depopts --depends-on |}^pkg^{| --coinstallable-with ocaml.|}^latest_ocaml^{| && \
opam list --color=never -s --with-test --with-doc --depopts --depends-on |}^pkg^{| --coinstallable-with ocaml.|}^latest_ocaml

let get_metadata ~debug ~jobs ~cap ~conf ~pool ~stderr logdir (_, base_obuilder) pkgs =
let get_revdeps ~base_obuilder ~pkgname ~pkg ~logdir =
Expand Down
1 change: 1 addition & 0 deletions server/backend/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
containers
oca_server
opam-core
ocaml-version
opam-format
obuilder-spec
ocluster-api
Expand Down