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

Expose repo mapping manifest to Starlark #19944

Closed
wants to merge 1 commit into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Oct 25, 2023

The new repo_mapping_manifest field on FilesToRunProvider allows Starlark rule implementations to access the File containing the repo mapping manifest for an executable target, e.g. to include the manifest into a synthetic runfiles structure for packaging purposes.

Fixes #19937

The new `repo_mapping_manifest` field on `FilesToRunProvider` allows
Starlark rule implementations to access the `File` containing the repo
mapping manifest for an executable target, e.g. to include the manifest
into a synthetic runfiles structure for packaging purposes.
@fmeum fmeum marked this pull request as ready for review October 25, 2023 16:38
@fmeum fmeum requested a review from a team as a code owner October 25, 2023 16:38
@fmeum fmeum requested review from aranguyen and removed request for a team and aranguyen October 25, 2023 16:38
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Configurability platforms, toolchains, cquery, select(), config transitions labels Oct 25, 2023
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.

Awesome, thanks!

@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 Oct 30, 2023
@purkhusid
Copy link

Whoop whoop, can we cherry pick this to the 7.0.0 release so that it gets shipped in the next RC?

@brentleyjones
Copy link
Contributor

@bazel-io flag

@bazel-io bazel-io added the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Oct 30, 2023
@meteorcloudy
Copy link
Member

@bazel-io fork 7.0.0

@bazel-io bazel-io removed the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Oct 30, 2023
@copybara-service copybara-service bot closed this in 3575211 Nov 2, 2023
@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 Nov 2, 2023
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Nov 2, 2023
The new `repo_mapping_manifest` field on `FilesToRunProvider` allows Starlark rule implementations to access the `File` containing the repo mapping manifest for an executable target, e.g. to include the manifest into a synthetic runfiles structure for packaging purposes.

Fixes bazelbuild#19937

Closes bazelbuild#19944.

PiperOrigin-RevId: 578735848
Change-Id: Ida78778af5aef4ba0c216815563aef4b54c9d1db
@fmeum fmeum deleted the 19937-repo-mapping branch November 2, 2023 08:03
iancha1992 pushed a commit that referenced this pull request Nov 2, 2023
The new `repo_mapping_manifest` field on `FilesToRunProvider` allows
Starlark rule implementations to access the `File` containing the repo
mapping manifest for an executable target, e.g. to include the manifest
into a synthetic runfiles structure for packaging purposes.

Fixes #19937

Closes #19944.

Commit
3575211

PiperOrigin-RevId: 578735848
Change-Id: Ida78778af5aef4ba0c216815563aef4b54c9d1db

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
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.

Allow access or generation of repo mapping files in Starlark
5 participants