Installs pre-commit hooks for OCaml projects that run dune fmt automatically
1
fork

Configure Feed

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

Add ocaml-build-info library for unified version strings

Rename ocaml-version to ocaml-build-info with Mono_info module.
All homebrew binaries now use Mono_info.version for consistent
version reporting across the monorepo.

The library wraps dune-build-info and falls back to git hash
in dev mode. Can be extended with SBOM or other metadata later.

+2 -2
+1 -1
bin/dune
··· 1 1 (executable 2 2 (name main) 3 3 (public_name precommit) 4 - (libraries precommit cmdliner eio_main vlog tty fmt)) 4 + (libraries precommit cmdliner eio_main vlog tty fmt ocaml-build-info))
+1 -1
bin/main.ml
··· 437 437 `P "$(b,1) if hooks are missing (status) or initialisation failed."; 438 438 ] 439 439 in 440 - let info = Cmd.info "precommit" ~version:"0.1.0" ~doc ~man in 440 + let info = Cmd.info "precommit" ~version:Mono_info.version ~doc ~man in 441 441 let default = Vlog.setup "precommit" in 442 442 Cmd.group info ~default [ init_cmd; status_cmd; check_cmd; fix_cmd ] 443 443