feat(core): switch to script bootstrap as a default
This PR enables the bootstrap script implementation for bazel 8 and above
for UNIX platforms.
DO NOT MERGE: this has to be discussed:
- [ ] Version number bump to 2.0?
Work towards #2156 Work towards #2521 Relands #2858 and reverts #2968 Fixes #2983
Related:
- Long term solution in python/peps#4476.
- Support for
rules_pkgto produce working tars is in bazelbuild/rules_pkg#929 that will be released in 1.2 (bazelbuild/rules_pkg#977) - The support for working tars that has symlinks is not yet ready in tar.bzl without a heavy performance penalty, see bazel-contrib/tar.bzl#16
FYI, @rickeylev, @alexeagle , we can continue talking about re-enabling the script=bootstrap by default for bazel 8+ here. Is there a good way to detect that we are running on that particular version with something else than config.none attribute check?
Wait for PEP 796
PEPs can take a long time, so I don't think we should wait on that.
Wait for rules_pkg 1.2 release
Maybe. If the 1.2 release is coming soon, then waiting sounds OK. If it takes too long, though, then I think we'll just have to press ahead. At the least, we should wait until there exists some rule that can package them.