Download patches/rules_rust_build_script_tools_transition.patch from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 871 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/patches/rules_rust_build_script_tools_transition.patch
- Command line
-
hf download hf://SaylorTwift/codex/patches/rules_rust_build_script_tools_transition.patch
-
curl -L -o rules_rust_build_script_tools_transition.patch https://huggingface.co/SaylorTwift/codex/resolve/main/patches/rules_rust_build_script_tools_transition.patch
871 Bytes
| diff --git a/cargo/private/cargo_build_script.bzl b/cargo/private/cargo_build_script.bzl | |
| --- a/cargo/private/cargo_build_script.bzl | |
| +++ b/cargo/private/cargo_build_script.bzl | |
| def _cargo_build_script_impl(ctx): | |
| + script_tools = [] | |
| + for target in ctx.attr.tools: | |
| + script_tools.append(target[DefaultInfo].files) | |
| + script_tools.append(target[DefaultInfo].default_runfiles.files) | |
| + | |
| workspace_name = ctx.label.workspace_name | |
| if not workspace_name: | |
| workspace_name = ctx.workspace_name | |
| def _cargo_build_script_impl(ctx): | |
| direct = [ | |
| ctx.executable._cargo_build_script_runner, | |
| ] + ([toolchain.target_json] if toolchain.target_json else []), | |
| - transitive = script_data + toolchain_tools, | |
| + transitive = script_data + script_tools + toolchain_tools, | |
| ) | |