-
Notifications
You must be signed in to change notification settings - Fork 12
Feature request: support including third-party (opam or elsewhere) dependencies on jengaroot #24
Comments
I have tried this workaround about but stuck with this error
|
I don't have much time to debug this at the moment, but one another approach you could try is to build a jenga with the rules statically linked in. We have an example with the Jane Street rules here. Essentially you need to write a .ml file containing: open Core.Std
module J = Jenga_lib
let root_markers =
[ ".git"
; ".hg"
]
|> List.map ~f:J.Path.Rel.create
let () =
J.Cli.main () ~run:(fun config ->
let root_dir =
J.Special_paths.find_ancestor_directory_containing
~one_of:root_markers
|> ok_exn
in
J.Run.main' ~root_dir (Env Jenga_rules.Root.setup) config) and compile it as a normal program. |
Thanks for the quick reply. I can understand the above code snippet but I don't know how I can use it with https://github.com/reasonml/rebel I will try to think some more about it. Documenation around jenga is extremely scarce. If I have more questions, where I can ask them? |
I guess you would need to replace You can ask jenga questions on the jenga project on github or on the ocaml-core@googlegroups.com mailing list |
I'd like to be able to use e.g. YoJson in my jengaroot. Some of our metadata files are in json.
cc @diml
The text was updated successfully, but these errors were encountered: