You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every since 0.17.x has been released, none of version seem to work on bazel 5. I always get:
Cycle in the workspace file detected. This indicates that a repository is used prior to being defined.
The following chain of repository dependencies lead to the missing definition.
- @bazel_skylib
This could either mean you have to add the '@bazel_skylib' repository with a statement like `http_archive` in your WORKSPACE file (note that transitive dependencies are not added automatically), or move an existing definition earlier in your WORKSPACE file.
ERROR: Error computing the main repository mapping: cycles detected during computation of main repo mapping
It would seem .17 has a new dependency. I already bring in gazelle so unless that is broken?
Activity
aignas commentedon Jan 27, 2023
FYI, see the updated notes in the https://github.com/bazelbuild/rules_python/releases/tag/0.17.3
tradergt commentedon Jan 27, 2023
OK, so I am not 100% getting what that means. Is it saying that all py_tests that I have says:
name = 'file_unittest' need to be changed to name = 'file_test'?
Thanks!
aignas commentedon Jan 27, 2023
The error in your ticket shows that
bazel_skylib, which became a dependency ofrules_pythonin #1001 is missing from the registered dependency list.You probably need to update
rules_pythoninstallation to be:Which was documented in the release notes, but has not been called out as a breaking change in the text above the changelog.
tradergt commentedon Jan 27, 2023
Yes sir, that fixed it. I missed that in the notes. Thanks for pointing it out!