-
Notifications
You must be signed in to change notification settings - Fork 45
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
repository_ctx.os.name.lower() inappropriate when remote build. #148
Comments
I don't have/use RBE environment -- can you send a suggestion/PR that fixes it? |
I'm hitting the same issue: download is for This is caused because What should happen is that we have repositories for each Zig host, Currently, any remote execution that is not the same constraints as the local executor fails with an "exec format error". The solution would be something akin to the following in the extension: load("@hermetic_cc_toolchain//toolchain:defs.bzl", "toolchain")
_HOSTS = (
"amd64-linux",
"arm64-linux",
"...etc...",
)
def _toolchains_impl(ctx):
for host in _HOSTS:
toolchain(host = HOST) # Creates `@amd64-linux-zig_sdk`, etc repositories
return ctx.extension_metadata(
ctx,
root_module_direct_deps = ["{}-zig_sdk".format(h) for h in _HOSTS],
root_module_direct_dev_deps = (),
reproducible = True,
)
toolchains = module_extension(implementation = _toolchains_impl) Then in the |
local os :
macos
remote os :
linux
It's supposed to download for Linux, but instead it downloads for macos
https://github.com/uber/hermetic_cc_toolchain/blob/cddeaa4c7173f8bf8bd5c14914670af352a68d89/toolchain/defs.bzl#L102C21-L107
The text was updated successfully, but these errors were encountered: