obazl / rules_ocaml

A Bazel Language Support Package for OCaml
https://obazl.github.io/docs_obazl
Apache License 2.0
32 stars 7 forks source link

@ocaml namespace clash #43

Closed mobileink closed 2 years ago

mobileink commented 2 years ago

The OBazl rules create @ocaml. The ocaml compiler lives in ocaml/, so if we put a WORKSPACE.bazel file there with workspace(name = "ocaml") we get an error about resolving @ocaml toolchains.

mobileink commented 2 years ago

This issue was removed by removing toolchain and platform logic from rules_ocaml. The ruleset only defines a toolchain model; its up to the user to provide toolchain and platform definitions. The @opam//local:refresh tool does this automatically for OPAM toolchains.