Monorepo management for opam overlays
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(monopam): skip conf-* and dune-* packages in unused dep check

These are build infrastructure (depexts, configurators) that don't
appear in META requires.

+7 -1
+7 -1
lib/lint.ml
··· 28 28 (** Packages that are always implicit — not in META but always needed. *) 29 29 let implicit_deps = String_set.of_list [ "ocaml"; "dune" ] 30 30 31 + (** [conf-*] packages are depexts (system library wrappers), not OCaml libs. *) 32 + let is_conf_pkg name = String.starts_with ~prefix:"conf-" name 33 + 31 34 let is_builtin lib = 32 35 let top = 33 36 match String.index_opt lib '.' with ··· 341 344 (String_set.union dune_pkgs 342 345 (String_set.union own_set implicit_deps)) 343 346 in 344 - let unused = String_set.diff runtime_deps needed in 347 + let unused = 348 + String_set.diff runtime_deps needed 349 + |> String_set.filter (fun p -> not (is_conf_pkg p)) 350 + in 345 351 String_set.iter 346 352 (fun pkg -> 347 353 issues :=