Closed phst closed 9 months ago
In https://github.com/phst/rules_elisp/blob/8606695e977b876ffb38f881f54e50de1606a733/docs/BUILD I selectively build the extensions
target (for a Starlark file containing module extensions) depending on whether the current Bazel version is 7 or not. Whether this works or not appears to depend mainly on the Bazel version, at least for recent enough Stardoc versions. Happy to switch to a better approach if there's one!
There is, you can detect the required Bazel feature directly: https://github.com/bazelbuild/stardoc/blob/bf441c86274770ea281d21e22292ecdaa6451eaa/stardoc/stardoc.bzl#L88
Let me know if that doesn't work and we can reconsider this.
See https://github.com/bazelbuild/stardoc/issues/192.
See logic in https://github.com/phst/rules_elisp/blob/8606695e977b876ffb38f881f54e50de1606a733/docs/BUILD for prior art.