Skip to content

Add --incompatible_filegroup_runfiles_for_data#25978

Closed
fmeum wants to merge 1 commit intobazelbuild:masterfrom
fmeum:incompatible-filegroup-runfiles
Closed

Add --incompatible_filegroup_runfiles_for_data#25978
fmeum wants to merge 1 commit intobazelbuild:masterfrom
fmeum:incompatible-filegroup-runfiles

Conversation

@fmeum
Copy link
Collaborator

@fmeum fmeum commented Apr 30, 2025

If true, runfiles of targets listed in the srcs attribute of a filegroup are available to targets that consume the filegroup as a data dependency.

Reland of #25365 behind an incompatible flag

@fmeum fmeum force-pushed the incompatible-filegroup-runfiles branch from f761cd4 to ed874ee Compare April 30, 2025 12:11
@fmeum fmeum marked this pull request as ready for review April 30, 2025 12:11
@fmeum fmeum requested review from a team and lberki as code owners April 30, 2025 12:11
@fmeum fmeum requested review from gregestren and meteorcloudy and removed request for a team and gregestren April 30, 2025 12:11
@github-actions github-actions bot added team-Configurability platforms, toolchains, cquery, select(), config transitions awaiting-review PR is awaiting review from an assigned reviewer labels Apr 30, 2025
Copy link
Member

@meteorcloudy meteorcloudy left a comment

Choose a reason for hiding this comment

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

LGTM.

Waiting for @lberki to take a look. Maybe we could flip this flag in Bazel but keep it disabled in google3?

@fmeum
Copy link
Collaborator Author

fmeum commented Apr 30, 2025

Waiting for @lberki to take a look. Maybe we could flip this flag in Bazel but keep it disabled in google3?

Yes, I think that's going to be the fate of the flag, similar to the one that governs canonical label stringification.

@fmeum
Copy link
Collaborator Author

fmeum commented May 14, 2025

@lberki Friendly ping

@fmeum
Copy link
Collaborator Author

fmeum commented Jun 17, 2025

@meteorcloudy @lberki Friendly ping :-)

@lberki
Copy link
Contributor

lberki commented Jun 17, 2025

Uh, sorry, this took an embarrassingly long time. I'm not too hot about adding another knob, but it's an improvement over abusing sh_library.

@meteorcloudy
Copy link
Member

@fmeum Can you please resolve the conflict so that we can import it?

@fmeum fmeum requested a review from meteorcloudy June 17, 2025 12:35
# Conflicts:
#	src/main/java/com/google/devtools/build/lib/rules/filegroup/Filegroup.java
@fmeum fmeum force-pushed the incompatible-filegroup-runfiles branch from ed874ee to 3b2053c Compare June 17, 2025 12:37
@fmeum
Copy link
Collaborator Author

fmeum commented Jun 17, 2025

@meteorcloudy Done!

@meteorcloudy meteorcloudy added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Jun 17, 2025
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Jun 18, 2025
@fmeum fmeum deleted the incompatible-filegroup-runfiles branch June 18, 2025 10:17
@fmeum
Copy link
Collaborator Author

fmeum commented Jun 27, 2025

@bazel-io fork 8.4.0

fmeum added a commit to fmeum/bazel that referenced this pull request Jul 5, 2025
If true, runfiles of targets listed in the srcs attribute of a filegroup are available to targets that consume the filegroup as a data dependency.

Reland of bazelbuild#25365 behind an incompatible flag

Closes bazelbuild#25978.

PiperOrigin-RevId: 772841978
Change-Id: Ia8f126bb33e02969eafdbd6972c83f5350d58be2
(cherry picked from commit cac453b)
fmeum added a commit to fmeum/bazel that referenced this pull request Jul 5, 2025
If true, runfiles of targets listed in the srcs attribute of a filegroup are available to targets that consume the filegroup as a data dependency.

Reland of bazelbuild#25365 behind an incompatible flag

Closes bazelbuild#25978.

PiperOrigin-RevId: 772841978
Change-Id: Ia8f126bb33e02969eafdbd6972c83f5350d58be2
(cherry picked from commit cac453b)
github-merge-queue bot pushed a commit that referenced this pull request Jul 7, 2025
If true, runfiles of targets listed in the srcs attribute of a filegroup
are available to targets that consume the filegroup as a data
dependency.

Reland of #25365 behind an
incompatible flag

Closes #25978.

PiperOrigin-RevId: 772841978
Change-Id: Ia8f126bb33e02969eafdbd6972c83f5350d58be2 
(cherry picked from commit cac453b)

Closes #26419
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Configurability platforms, toolchains, cquery, select(), config transitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants