Homebrew bottle builder and tap manager for OCaml monorepos
0
fork

Configure Feed

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

Use date-hash version format in bottler (e.g. 20260401-b15a084)

Multiple releases per day now get unique versions. The git short
hash makes each release traceable to the exact commit. Comparing
versions: date gives chronological order, hash gives exact source.

+10 -1
+10 -1
lib/homebrew.ml
··· 205 205 206 206 let version_string () = 207 207 let t = Unix.localtime (Unix.gettimeofday ()) in 208 - Fmt.str "%04d%02d%02d" (1900 + t.tm_year) (1 + t.tm_mon) t.tm_mday 208 + let date = Fmt.str "%04d%02d%02d" (1900 + t.tm_year) (1 + t.tm_mon) t.tm_mday in 209 + let hash = 210 + match 211 + Bos.OS.Cmd.run_out Bos.Cmd.(v "git" % "rev-parse" % "--short" % "HEAD") 212 + |> Bos.OS.Cmd.out_string 213 + with 214 + | Ok (h, _) -> String.trim h 215 + | Error _ -> "unknown" 216 + in 217 + Fmt.str "%s-%s" date hash 209 218 210 219 let exe config (bin : binary) = 211 220 ignore config;