-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Provide the host CPU to repository rules #14685
Copy link
Copy link
Closed
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)help wantedSomeone outside the Bazel team could own thisSomeone outside the Bazel team could own thisteam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: feature request
Metadata
Metadata
Assignees
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)help wantedSomeone outside the Bazel team could own thisSomeone outside the Bazel team could own thisteam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: feature request
Description of the problem / feature request:
Repository rules already have access to
repository_oswhich allows rules to change their behaviour based on the exec OS. Repository rules should also know the exec architecture. Repository rules currently work around this limitation byuname -m, which isn't ideal. See rules_go.Feature requests: what underlying problem are you trying to solve with this feature?
Repository rules create potentially brittle and strange workarounds to get the exec CPU. There is no standardisation and no official guidance on how best to create repository rules which target multiple platforms.
What operating system are you running Bazel on?
Linux x86_64
What's the output of
bazel info release?❯ bazel info release Starting local Bazel server and connecting to it... release 5.0.0Have you found anything relevant by searching the web?
Any other information, logs, or outputs that you want to share?
N/A