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

[8.0.0] Use non-snapshotted paths when creating a runfiles symlink tree. #24267

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

tjgq
Copy link
Contributor

@tjgq tjgq commented Nov 11, 2024

It has been a long-standing feature of runfiles symlink trees that they reflect changes made to files referenced in them after the tree has been built. In certain scenarios (currently only at Google), the FileSystem implementation may rewrite symlink target paths to point to read-only snapshots, which breaks this feature when using in-process symlink creation. With this change, the rewriting is bypassed in this case.

Also improve the documentation for the BlazeModule getFileSystem() and getFileSystemForBuildArtifacts() methods.

PiperOrigin-RevId: 690541050
Change-Id: I140cc68ca1b9236e9fb4049830cc3b5629eaf770

It has been a long-standing feature of runfiles symlink trees that they reflect changes made to files referenced in them after the tree has been built. In certain scenarios (currently only at Google), the FileSystem implementation may rewrite symlink target paths to point to read-only snapshots, which breaks this feature when using in-process symlink creation. With this change, the rewriting is bypassed in this case.

Also improve the documentation for the BlazeModule getFileSystem() and getFileSystemForBuildArtifacts() methods.

PiperOrigin-RevId: 690541050
Change-Id: I140cc68ca1b9236e9fb4049830cc3b5629eaf770
@tjgq tjgq requested a review from a team as a code owner November 11, 2024 11:15
@github-actions github-actions bot added the awaiting-review PR is awaiting review from an assigned reviewer label Nov 11, 2024
@meteorcloudy meteorcloudy added this pull request to the merge queue Nov 11, 2024
Merged via the queue into bazelbuild:release-8.0.0 with commit 2a5c0b7 Nov 11, 2024
46 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Nov 11, 2024
@iancha1992 iancha1992 added this to the 8.0.0 release blockers milestone Nov 11, 2024
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.

3 participants