Reproducible example bug for bazel-contrib/rules_python#958
entry_point rule no longer working when used with blzmod.
This repo default use blzmod. See common --enable_bzlmod in .bazelrc
It'll return error when run with the flake8 in this repo
❯ bazelbuild//:flake8ERROR: /Users/xxx/projects/rules_python_bug/BUILD.bazel:3:6: nosuchpackage'@[unknown repo 'pip_flake8' requested from @]//': Therepository'@[unknown repo 'pip_flake8' requested from @]'couldnotberesolved: Norepositoryvisibleas'@pip_flake8'frommainrepositoryandreferencedby'//:flake8'ERROR: Analysisoftarget'//:flake8'failed; buildaborted: AnalysisfailedINFO: Elapsedtime: 5.307sINFO: 0processes.
FAILED: BuilddidNOTcompletesuccessfully (1packagesloaded, 0targetsconfigured)Comment out common --enable_bzlmod in .bazelrc, and then rerun the bazel target again will succeed.
❯ bazelbuild//:flake8INFO: Analyzedtarget//:flake8 (0packagesloaded, 0targetsconfigured).
INFO: Found1target...
Target @pip_flake8//:rules_python_wheel_entry_point_flake8up-to-date:
bazel-bin/external/pip_flake8/rules_python_wheel_entry_point_flake8INFO: Elapsedtime: 0.071s, CriticalPath: 0.00sINFO: 1process: 1internal.
INFO: Buildcompletedsuccessfully, 1totalaction