FR: version string convention to signify patched Bazel binary #10040
Labels
area-EngProd
Bazel CI, infrastructure, bootstrapping, release, and distribution tooling
help wanted
Someone outside the Bazel team could own this
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Documentation
Documentation improvements that cannot be directly linked to other team labels
team-OSS
Issues for the Bazel OSS team: installation, release processBazel packaging, website
type: documentation (cleanup)
Description of the problem / feature request:
I am requesting a documented convention which allows vendors to tag their builds of Bazel. Rule authors should then accommodate those conventions when conditioning code on Bazel's
native.bazel_version
.Feature requests: what underlying problem are you trying to solve with this feature?
We backport patches from master, apply pending PRs, etc. to our internal builds of Bazel. To indicate to our users that they're not using vanilla Bazel, we append a
+vmware
to the version string:We now have users trying to use rules_nodejs, but their builds are failing because rules_nodejs has logic to parse Bazel's version, and it's choking on our
+vmware
suffix. Our options are now to either stop vendor-stamping our builds, or to (locally) patch rules_nodejs to ignore+...
. I would prefer to adhere to a shared convention such that, after adjusting our stamping process to match said convention, we could instead submit a PR to rules_nodejs so that it supports the same scheme as well.Have you found anything relevant by searching the web?
No.
I hadn't even heard of
native.bazel_version
until encountering its use in rules_nodejs. AFAICT it's undocumented on docs.bazel.build.The text was updated successfully, but these errors were encountered: