build_tar attempts to use python2 when upgrading to Bazel 6.0.0 #17179
Labels
team-OSS
Issues for the Bazel OSS team: installation, release processBazel packaging, website
type: support / not a bug (process)
Description of the bug:
After upgrading to Bazel 6.0.0. I am getting the following failure when building the Apache Heron project.
failed: (Exit 127): build_tar failed: error executing command (from target //scripts/packages:heron-core-lib-downloader) bazel-out/darwin-py2-opt-exec-2B5CBBC6/bin/external/rules_pkg/build_tar
When testing with Bazel 5.1.0 the issue does not occur. Is there something relating to this toolchain definition that is failing? https://github.com/bazelbuild/bazel/blob/6.0.0/tools/python/toolchain.bzl
My build machine is a
darwin
(MacOS), and I havebrew
installed Python 3.9 and 3.10. I do not have any form of Python 2 installed.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
git clone [email protected]:apache/incubator-heron.git
echo 6.0.0 > .bazelversion
bazel build scripts/packages:heron-bin
Which operating system are you running Bazel on?
macOS Ventura 13.1
What is the output of
bazel info release
?release 6.0.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: