Skip to content

Fix incorrect exec transition for cargo_build_script#4040

Open
UebelAndre wants to merge 1 commit into
bazelbuild:mainfrom
UebelAndre:cargo_build_script
Open

Fix incorrect exec transition for cargo_build_script#4040
UebelAndre wants to merge 1 commit into
bazelbuild:mainfrom
UebelAndre:cargo_build_script

Conversation

@UebelAndre
Copy link
Copy Markdown
Collaborator

@UebelAndre UebelAndre commented May 14, 2026

Relying on an exec configuration through targets consumed in target leads to the potential for cfg = "exec" to be evaluated differently in the transitive target (in this case, cargo_build_script_runfiles.script) and the consumer (cargo_build_script.data_runfiles). This change moves the script directly back to cargo_build_script in cfg = "exec" and separately uses a cfg = "target" intermediate rule to implement runfiles (solving for bazelbuild/bazel#15486).

closes #3201

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

Successfully merging this pull request may close these issues.

"No such file or directory" crash for build scripts of 3rd party crates

1 participant