Skip to content
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

Don't swallow runfiles of srcs in data runfiles of filegroup #25365

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Feb 24, 2025

The data_runfiles of a filegroup should contain the data_runfiles of all deps in srcs, plus the data_runfiles of all deps in data. Previously, they didn't contain the former.

Related to #25329 (comment)

The `data_runfiles` of a `filegroup` should contain the `data_runfiles`
of all deps in `srcs`, plus the `data_runfiles` of all deps in `data`.
Previously, they didn't contain the former.
@fmeum
Copy link
Collaborator Author

fmeum commented Feb 24, 2025

I'm not entirely sure whether the correct behavior would be to merge in the data_runfiles or the default_runfiles of srcs as these have been deprecated for a while and Starlark rules rarely distinguish between the two. @lberki Are you able to make the call? :-)

@fmeum fmeum marked this pull request as ready for review February 24, 2025 12:04
@fmeum fmeum requested a review from lberki as a code owner February 24, 2025 12:04
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Feb 24, 2025
@meteorcloudy
Copy link
Member

@fmeum
Copy link
Collaborator Author

fmeum commented Feb 24, 2025

Thanks, the run looks good, all failures are caused by known issues.

@meteorcloudy
Copy link
Member

Nice, @comius @lberki please double check this change is safe.

@iancha1992 iancha1992 added the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review PR is awaiting review from an assigned reviewer team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants