Skip to content

cargo: declare build-script tool files and runfiles - #4302

Open
jrandolf wants to merge 1 commit into
bazelbuild:mainfrom
jrandolf:fix/build-script-tool-inputs
Open

jrandolf wants to merge 1 commit into
bazelbuild:mainfrom
jrandolf:fix/build-script-tool-inputs

Conversation

@jrandolf

Copy link
Copy Markdown
Contributor

Build scripts now receive the files and default runfiles of their explicitly declared tools at the execution paths used by build_script_env. A compiler incoming transition can configure the script's runfiles differently from the action's tools; relying on the former then leaves the expanded tool path missing.

The regression models that transition and checks both the exact action-input paths and sandboxed execution of a generated tool with a runtime file. It also retains ordinary public-macro coverage. The transitioned fixture fails without the fix and all four tests pass with it.

Fixes #4297.

Validation: bazel test //cargo/tests/cargo_build_script/tool_inputs:all (4 tests passed); formatting and whitespace checks passed.

This branch has not been deployed

No deployments
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.

cargo_build_script tools referenced through execpath are missing from action inputs

1 participant