Skip to content

Add support for build script runfiles - #4066

Merged
UebelAndre merged 1 commit into
bazelbuild:mainfrom
UebelAndre:cargo_build_script
Jun 11, 2026
Merged

Add support for build script runfiles#4066
UebelAndre merged 1 commit into
bazelbuild:mainfrom
UebelAndre:cargo_build_script

Conversation

@UebelAndre

Copy link
Copy Markdown
Collaborator

This change restores support for runfiles in cargo_build_script.script. There exists one limitation where only cargo_build_script.tools can be located via runfiles. Any cargo_build_script.data files should be located relative to the CARGO_MANIFEST_DIR env var. This is required as there is no existing interface for merging exec (tools) and target (data) runfiles.

closes #4064

@UebelAndre
UebelAndre marked this pull request as ready for review June 3, 2026 14:39
@UebelAndre
UebelAndre force-pushed the cargo_build_script branch from 41c0e25 to 10a7db4 Compare June 10, 2026 14:48
@UebelAndre
UebelAndre requested a review from slackito June 10, 2026 15:06

@slackito slackito left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@UebelAndre
UebelAndre added this pull request to the merge queue Jun 11, 2026
Merged via the queue into bazelbuild:main with commit 57d165f Jun 11, 2026
3 checks passed
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.

2 participants