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

Add --incompatible_no_implicit_watch_label #23750

Closed
wants to merge 3 commits into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Sep 25, 2024

When the flag is flipped, ctx.path no longer watches paths resolved from Label parameters and other methods on ctx no longer watch such paths even with watch = "no".

When the flag is flipped, `ctx.path` no longer watches paths. It used to do so for `Label` arguments only, which is inconsistent with how the other `ctx` methods operate now that they also watch files.
@github-actions github-actions bot added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Sep 25, 2024
@fmeum fmeum requested review from meteorcloudy and Wyverald and removed request for meteorcloudy September 25, 2024 09:38
@iancha1992
Copy link
Member

@fmeum should we include this in release-7.4.0?

@fmeum
Copy link
Collaborator Author

fmeum commented Sep 25, 2024

@bazel-io fork 7.4.0

Copy link
Member

@Wyverald Wyverald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a shell integration test, with the flag on and off?

Co-authored-by: Xùdōng Yáng <wyverald@gmail.com>
@fmeum fmeum requested a review from Wyverald September 26, 2024 08:18
@meteorcloudy
Copy link
Member

Can you file an incompatible change issue to document this flag?
https://github.com/bazelbuild/bazel/issues/new/choose

@Wyverald Wyverald 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 Sep 26, 2024
@fmeum
Copy link
Collaborator Author

fmeum commented Oct 3, 2024

@meteorcloudy I created #23861.

@copybara-service copybara-service bot closed this in 5019697 Oct 3, 2024
@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 Oct 3, 2024
@fmeum fmeum deleted the 23368-incompatible-watch branch October 3, 2024 19:27
fmeum added a commit to fmeum/bazel that referenced this pull request Oct 8, 2024
When the flag is flipped, `ctx.path` no longer watches paths resolved from `Label` parameters and other methods on `ctx` no longer watch such paths even with `watch = "no"`.

Closes bazelbuild#23750.

PiperOrigin-RevId: 681978073
Change-Id: I9bef5c735db54c971beb806aa1f1a0eb287e3ff2

(cherry picked from commit 5019697)
github-merge-queue bot pushed a commit that referenced this pull request Oct 8, 2024
When the flag is flipped, `ctx.path` no longer watches paths resolved
from `Label` parameters and other methods on `ctx` no longer watch such
paths even with `watch = "no"`.

Closes #23750.

PiperOrigin-RevId: 681978073
Change-Id: I9bef5c735db54c971beb806aa1f1a0eb287e3ff2

(cherry picked from commit 5019697)

Closes #23768
@iancha1992
Copy link
Member

The changes in this PR have been included in Bazel 7.4.0 RC1. Please test out the release candidate and report any issues as soon as possible.
If you're using Bazelisk, you can point to the latest RC by setting USE_BAZEL_VERSION=7.4.0rc1. Thanks!

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