Skip to content

[DRAFT] plumb transitive packages to RuleContext#16278

Closed
Wyverald wants to merge 1 commit intomasterfrom
wyv-draft-rulecontext
Closed

[DRAFT] plumb transitive packages to RuleContext#16278
Wyverald wants to merge 1 commit intomasterfrom
wyv-draft-rulecontext

Conversation

@Wyverald
Copy link
Copy Markdown
Member

No description provided.

PiperOrigin-RevId: 474351659
Change-Id: I7158c8adacc0b1db7f7bdda3b621d49c1fdb491c
@Wyverald Wyverald deleted the wyv-draft-rulecontext branch September 16, 2022 11:21
aiuto pushed a commit to aiuto/bazel that referenced this pull request Oct 12, 2022
To fix bazelbuild#16124, we need to collect all the repos/repo mappings relevant for a runfiles directory and write that into a manifest. One way to do that is to utilize the existing `transitivePackagesForPackageRootResolution` thing that we collect in most cases.

This CL plumbs this information through to RuleContext (whereafter it can be used by RunfilesSupport to write a manifest), without any logic changes. The field `transitivePackagesForPackageRootResolution` is renamed to simply `transitivePackages` since it's now used for multiple purposes.

Closes bazelbuild#16278.

PiperOrigin-RevId: 474778287
Change-Id: I7158c8adacc0b1db7f7bdda3b621d49c1fdb491c
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