Build information library for monopam tools.
0
fork

Configure Feed

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

Rename ocaml-build-info to monopam-info

- Rename directory: ocaml-build-info -> monopam-info
- Rename module: Mono_info -> Monopam_info
- Rename package: ocaml-build-info -> monopam-info
- Update all consumers to use new module name
- Remove "Skipping pull" log noise from push output

+45
+2
dune-project
··· 1 + (lang dune 3.21) 2 + (name monopam-info)
+28
lib/dune
··· 1 + (library 2 + (name monopam_info) 3 + (public_name monopam-info) 4 + (libraries dune-build-info)) 5 + 6 + ; In release mode, get the actual git hash (uses universe dep to always refresh) 7 + 8 + (rule 9 + (target git_hash.ml) 10 + (deps (universe)) 11 + (enabled_if 12 + (= %{profile} release)) 13 + (action 14 + (with-stdout-to 15 + %{target} 16 + (bash 17 + "echo 'let hash = \"'$(git rev-parse --short HEAD 2>/dev/null || echo dev)'\"'")))) 18 + 19 + ; In dev mode, just use "dev" to avoid rebuilds on every commit 20 + 21 + (rule 22 + (target git_hash.ml) 23 + (enabled_if 24 + (<> %{profile} release)) 25 + (action 26 + (with-stdout-to 27 + %{target} 28 + (echo "let hash = \"dev\""))))
+4
lib/monopam_info.ml
··· 1 + let version = 2 + match Build_info.V1.version () with 3 + | Some v -> Build_info.V1.Version.to_string v 4 + | None -> Git_hash.hash
+11
monopam-info.opam
··· 1 + opam-version: "2.0" 2 + name: "ocaml-build-info" 3 + synopsis: "Git commit hash version for OCaml CLIs" 4 + maintainer: "Thomas Gazagnaire" 5 + license: "ISC" 6 + depends: [ 7 + "ocaml" {>= "5.0"} 8 + "dune" {>= "3.0"} 9 + "dune-build-info" 10 + ] 11 + build: ["dune" "build" "-p" name "-j" jobs]