-
Notifications
You must be signed in to change notification settings - Fork 556
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
Using rules_python
requires undocumented dependency on bazel_skylib
#932
Comments
I managed to fix the problem locally by adding the repository to my WORKSPACE file:
|
Almost every rule set depends on skylib. And they might depend on different versions. |
I assumed it wasn't necessary given that there is a vendored copy of
Maybe it's worth cleaning up the documentation if that statement is no longer valid? |
I'd rather clean up the Getting Started Guide... That is what people follow
and I hear that they give up with Bazel.io altogether after the first error
message during their first tutorial... Do you need a hand with that?
…On Wed, 11 Jan 2023 at 18:04, Oliver Lee ***@***.***> wrote:
I assumed it wasn't necessary given that there is a vendored copy of
bazel_skylib and the README states:
This exists so that users of rules_python don't have to install bazel-skylib copied from https://github.com/bazelbuild/bazel-skylib/blob/1.0.3
Maybe it's worth cleaning up the documentation if that statement is no
longer valid?
—
Reply to this email directly, view it on GitHub
<#932 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACRYNKG7ZXLYLUNMMDXBCLWR5RBVANCNFSM6AAAAAATBSNW4Y>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Thank you
Kind regards,
Matej Sadovsky
Software Engineer
|
No it is not problem for me, thanks for asking :) Cleaning up the Getting Started guide sounds reasonable but feel free to close if don't think it's worth doing. |
Nope this was a legit bug and an accidental regression in the last release. Sorry about that! Fixed in #1001 |
@oliverlee where is that README? I'm trying to clean up but I don't see that text in rules_python anywhere. |
@yin where is "the Getting Started Guide"? Want to make sure I found all the outdated spots. |
@alexeagle With "Getting Started Guide" I meant https://github.com/bazelbuild/rules_python/blob/main/README.md I may have been confusing this with another issue I had with the I've got this error, when trying to set up python toolchain on GitLab CI. My test were failing, because the docker image I am using has preinstalled Python 2.7. When I added the .. I get another error:
And this is the CI run: https://gitlab.com/yin2/language/-/jobs/3583021972 |
It looks like But your CI runner is using Bazel 3.5.0: I guess |
We do have a check already (this is exactly why we vendored a bit of skylib to begin with) I guess you don't happen to call I don't think there's more to do here - thanks! |
Can we explain this in the docs? Following the README.md did not get me to a usable workspace. I don't know, which GitLab CI guide I followed anymore, gcr.io/bazel-public/bazel:latest is the official Bazel 3.5.0 docker image and it was not updated with Bazel 4.0 |
|
@alexeagle Thank you! The correct docker image is listed in bazelbuild's Release Notes and Official Bazel docs. I have been using the wrong docker image all along: l.gcr.io/google/bazel:latest. This image stopped being released in 2020 and is tagged with version 3.5.0. |
I'm getting the following error:
with this:
and
I assume this is the cause:
https://github.com/bazelbuild/rules_python/blob/main/python/config_settings/transition.bzl#L5
bazel_skylib
isn't needed withrules_python
0.14.0.The text was updated successfully, but these errors were encountered: