Closed thesayyn closed 8 months ago
I guess bazel can make this easy on us and already expose bazel_version to BUILD context...
The problem is that we can't load
conditionally based on whether something is being accessed from a repo rule context or a build rule context (or something else, for that matter). So the extra repo will always be load
ed from anyway.
Even if we made Bazel itself play nice, it's unlikely we could ever use the new feature and get rid of the extra repo since the whole spirit of bazel_features
is to support multiple versions of Bazel.
I'll go ahead and close this, but as always we can reopen if necessary.
Currently, there's an external repository with bazel version stamped inside .bzl file to allow access to bazel version from non-repository contexts.
This is unnecessary if bazel_features is being called from a repository context where bazel-version is accessible therefore making the external version repository unnecessary.