Skip to content

[9.1.0] Ensure that rctx.symlink invalidates correctly if it is a copy (https://github.com/bazelbuild/bazel/pull/28682)#28741

Merged
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
bazel-io:cp28682-9.1.0
Feb 23, 2026

Conversation

@bazel-io
Copy link
Copy Markdown
Member

Description

When rctx.symlink is implemented as a copy (on Windows with default settings), the target is now watched so that modifications to it are still seen through the fake "symlink".
Motivation

Build API Changes

No

Checklist

  • I have added tests for the new use cases (if any).
  • I have updated the documentation (if applicable).

Release Notes

RELNOTES: rctx.symlink now implicitly watches the target if it falls back to a copy.

Closes #28682.

PiperOrigin-RevId: 873775628
Change-Id: I6bd9d38e19b20e3342802ab4a11acd319b7ac52f

Commit 6dd6396

…elbuild#28682)

### Description
When `rctx.symlink` is implemented as a copy (on Windows with default settings), the target is now watched so that modifications to it are still seen through the fake "symlink".
Motivation

### Build API Changes
No

### Checklist

- [x] I have added tests for the new use cases (if any).
- [ ] I have updated the documentation (if applicable).

### Release Notes
RELNOTES: `rctx.symlink` now implicitly watches the target if it falls back to a copy.

Closes bazelbuild#28682.

PiperOrigin-RevId: 873775628
Change-Id: I6bd9d38e19b20e3342802ab4a11acd319b7ac52f
@bazel-io bazel-io requested a review from a team as a code owner February 23, 2026 00:04
@bazel-io bazel-io added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Feb 23, 2026
@iancha1992 iancha1992 added this pull request to the merge queue Feb 23, 2026
Merged via the queue into bazelbuild:release-9.1.0 with commit 13002c2 Feb 23, 2026
46 checks passed
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants