Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown platform: aarch64-apple-darwin-freethreaded with Bazel 8.0.0rc4 #128

Open
lalten opened this issue Dec 2, 2024 · 1 comment
Open

Comments

@lalten
Copy link

lalten commented Dec 2, 2024

I'm adding Bazel 8 to the rules_appimage CI and the rules_pycross compatibility test fails in Bazel 8: https://github.com/lalten/rules_appimage/actions/runs/12120010016/job/33787778921?pr=253

INFO: Repository rules_pycross++environments+pycross_environments instantiated at:
  <builtin>: in <toplevel>
Repository rule pycross_environments_repo defined at:
  /home/runner/.cache/bazel/_bazel_runner/98a5b15d41eaf418ed0fd79d24a54d98/external/rules_pycross+/pycross/private/toolchain_helpers.bzl:430:[44](https://github.com/lalten/rules_appimage/actions/runs/12119608705/job/33786541460?pr=253#step:6:45): in <toplevel>
ERROR: /home/runner/.cache/bazel/_bazel_runner/98a5b15d41eaf418ed0fd79d24a54d98/external/rules_pycross+/pycross/private/toolchain_helpers.bzl:54:9: An error occurred during the fetch of repository 'rules_pycross++environments+pycross_environments':
   Traceback (most recent call last):
	File "/home/runner/.cache/bazel/_bazel_runner/98a5b15d41eaf418ed0fd79d24a54d98/external/rules_pycross+/pycross/private/toolchain_helpers.bzl", line 391, column 50, in _pycross_environment_repo_impl
		computed_environments = _compute_environments(
	File "/home/runner/.cache/bazel/_bazel_runner/98a5b15d41eaf418ed0fd79d24a54d98/external/rules_pycross+/pycross/private/toolchain_helpers.bzl", line 100, column [47](https://github.com/lalten/rules_appimage/actions/runs/12119608705/job/33786541460?pr=253#step:6:48), in _compute_environments
		env_platforms = _get_env_platforms(target_platform, glibc_version, macos_version)
	File "/home/runner/.cache/bazel/_bazel_runner/98a5b15d41eaf418ed0fd79d24a54d98/external/rules_pycross+/pycross/private/toolchain_helpers.bzl", line 54, column 9, in _get_env_platforms
		fail("Unknown platform: {}".format(py_platform))
Error in fail: Unknown platform: aarch64-apple-darwin-freethreaded

The specific run is for Bazel 8.0.0rc4 on ubuntu-latest with Bzlmod active.

I don't test rules_pycross compatibility with Workspace or Macos, so I can't say if that would work.

Any idea what would cause this?

repro:

git clone https://github.com/lalten/rules_appimage.git
cd rules_appimage
USE_BAZEL_VERSION=8.0.0rc4 bazel test //...
@lalten
Copy link
Author

lalten commented Dec 2, 2024

It seems to be related to astral-sh/python-build-standalone#326. rules_appimage uses Python 3.13 by default.

lalten added a commit to lalten/rules_appimage that referenced this issue Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant