Always collect FileProvider's filesToBuild as data runfiles#16680
Merged
ShreeM01 merged 1 commit intobazelbuild:release-6.0.0from Nov 8, 2022
Merged
Always collect FileProvider's filesToBuild as data runfiles#16680ShreeM01 merged 1 commit intobazelbuild:release-6.0.0from
ShreeM01 merged 1 commit intobazelbuild:release-6.0.0from
Conversation
d7c78c3 to
7ba7323
Compare
Guidelines for Starlark rules suggest that `data`-like attributes on rules should always merge the default outputs of rule targets into the transitive runfiles. See: https://docs.bazel.build/versions/main/skylark/rules.html#runfiles-features-to-avoid As a result, Starlark rules generally don't (and shouldn't) explicitly include their default outputs into their runfiles. Before this commit, native rules did not merge these outputs in the same way as idiomatic Starlark rules, which led to unexpectedly absent runfiles. Fixes bazelbuild#15043 Closes bazelbuild#15052. PiperOrigin-RevId: 486663801 Change-Id: I4a30b8b8a4dfc84bf4de27fd7894dd48e795c081
7ba7323 to
f34c45b
Compare
Collaborator
Author
|
@comius Could you review this cherry-pick? |
comius
approved these changes
Nov 8, 2022
This was referenced May 30, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Guidelines for Starlark rules suggest that
data-like attributes on rules should always merge the default outputs of rule targets into the transitive runfiles. See:https://docs.bazel.build/versions/main/skylark/rules.html#runfiles-features-to-avoid
As a result, Starlark rules generally don't (and shouldn't) explicitly include their default outputs into their runfiles. Before this commit, native rules did not merge these outputs in the same way as idiomatic Starlark rules, which led to unexpectedly absent runfiles.
Fixes #15043
Closes #16678.
PiperOrigin-RevId: 486663801
Change-Id: I4a30b8b8a4dfc84bf4de27fd7894dd48e795c081