Hello,
I'm writing a script which adds a dependency to an arbitrary bazel project. The script should edit the MODULE.bazel or WORKSPACE file, depending on the bazel system in use. It tries to figure out which system is used by probing the filesystem, looking for WORKSPACE, MODULE.bazel or WORKSPACE.bzlmod.
However, this heuristic is brittle, and projects (such as cppitertools) may have an empty WORKSPACE file.
Is there a way to reliably get the system in use?
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bazel-discuss/2776bd44-8e7e-4e53-9b00-12dea05d9534n%40googlegroups.com.