Currently pkg_config_repository, qt_mac_repository.bzl, and android_repository use repository_rule without local = True.
If the local flag is set, in addition to the above cases, the repository is also re-fetched when the Bazel server restarts or when any file that affects the declaration of the repository changes (e.g. the WORKSPACE file or a file it loads), regardless of whether the changes resulted in a change to the declaration of the repository or its code.
Non-local repositories are not re-fetched in these cases. This is because these repositories are assumed to talk to the network or be otherwise expensive.
As a result, these repositories will not be re-evaluated when Bazel is re-launched.
Description
Currently
pkg_config_repository
,qt_mac_repository.bzl
, andandroid_repository
userepository_rule
withoutlocal = True
.As a result, these repositories will not be re-evaluated when
Bazel
is re-launched.pkg_config_repository
https://github.com/google/mozc/blob/e324bf2d2fe46dbe052ab3c1b4153f0b1c50a9a0/src/bazel/pkg_config_repository.bzl#L117-L122
https://github.com/google/mozc/blob/e324bf2d2fe46dbe052ab3c1b4153f0b1c50a9a0/src/WORKSPACE.bazel#L119-L123
https://github.com/google/mozc/blob/e324bf2d2fe46dbe052ab3c1b4153f0b1c50a9a0/src/WORKSPACE.bazel#L132-L136
qt_mac_repository.bzl
https://github.com/google/mozc/blob/e324bf2d2fe46dbe052ab3c1b4153f0b1c50a9a0/src/bazel/qt_mac_repository.bzl#L44-L50
android_repository
https://github.com/google/mozc/blob/e324bf2d2fe46dbe052ab3c1b4153f0b1c50a9a0/src/bazel/android_repository.bzl#L63-L66
Steps to reproduce
Expected behavior
libibus-1.0-dev
,libglib2.0-dev
,qt6-base-dev
,libgl-dev
)Actual behavior
libibus-1.0-dev
,libglib2.0-dev
,qt6-base-dev
,libgl-dev
)Version or commit-id
e324bf2d2fe46dbe052ab3c1b4153f0b1c50a9a0
Environment