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

[Bazel CI] Unable to find package for @@rules_python+//python:py_test.bzl #108

Open
sgowroji opened this issue Oct 4, 2024 · 1 comment

Comments

@sgowroji
Copy link
Member

sgowroji commented Oct 4, 2024

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4170#019255cd-fa44-4ffc-8b06-776030abbf8b

Platform: Ubuntu

Logs:

ERROR: �[0mSkipping '...': error loading package under directory '': error loading package '': Internal error while loading Starlark builtins: Failed to autoload external symbols: Unable to find package for @@rules_python+//python:py_test.bzl: The repository '@@rules_python+' could not be resolved: Repository '@@rules_python+' is not defined. Most likely you need to upgrade the version of rules repository in the WORKSPACE file.
ERROR: �[0merror loading package under directory '': error loading package '': Internal error while loading Starlark builtins: Failed to autoload external symbols: Unable to find package for @@rules_python+//python:py_test.bzl: The repository '@@rules_python+' could not be resolved: Repository '@@rules_python+' is not defined. Most likely you need to upgrade the version of rules repository in the WORKSPACE file.

Culprit:

Steps:

git clone https://github.com/bazelbuild/rules_testing
git reset 724bf647aaf30d302f07c7890b5c8149526bbfe7  --hard
export USE_BAZEL_VERSION=166eaa09f9cd31836df898ea236e1e0633a73b12
bazel test --noenable_bzlmod --enable_workspace ... 

CC Greenteam @mai93

@rickeylev
Copy link
Collaborator

note for repro: I think this requires --incompatible_autoload_externally=@rules_python

I think the fix is in upstream, but not yet released: bazelbuild/rules_python#2274

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

No branches or pull requests

2 participants