Debian Codegraph @

test/blackbox-tests/test-cases/wasmoo/build-info.t/src/main.ml

raw
1 let version =
2 match Build_info.V1.version () with
3 | None -> "unknown"
4 | Some v -> Build_info.V1.Version.to_string v
5
6 let () = match String.split_on_char '-' version with
7 | [tag; plus; _commit; dirty] -> Printf.printf "%s-%s-%s-%s" tag plus "xxxxx" dirty
8 | [ x ] -> print_endline x
9 | _ -> print_endline "unexpected"