-
Notifications
You must be signed in to change notification settings - Fork 22
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
target 'library_pytest' not declared in package '' #19
Comments
what is in the generated build file |
Hello, sorry, I was off work. Here are the contents of load("//:defs.bzl", "download_wheel")
load("//:defs.bzl", "noop")
load("//:defs.bzl", "pip_install") |
@ibolit can you make a self contained repro? do you know if you have multiple repo rules named |
@NathanHowell I am not sure I can, I will try some time later. I seriously suspect something "got broken" while I was working on my own rules, because, for one thing, the "regular" poetry stopped installing some packages (like, pytest), it just hung and did nothing, but that stopped when I cleaned poetry caches. About other rules named For now, I have replaced Are there any more files I could check or caches I could clean besides |
@NathanHowell After I wrote the previous thing, I asked myself that last question and then googled it. I found this: rm -r $(bazel info repository_cache) After that, my commits that still have In fact, you mentioning other targets named |
Sorry, I checked again. It didn't start working Some more information that might be useful: Our poetry version is 1.2.2 When I try to run
Seemingly, for all of the dependencies in my |
What I am doing:
I copied the
WORKSPACE
setup verbatim and added a poetrydependency
to one of my targets. This configuration worked, then I worked on some other Bazel functionality for my project. When I tried running tests after I was done with my other functionality, therules_poetry
seem to no longer work.That other functionality has nothing to do with poetry or pip, but it does involve building wheels from my source code, it uses the standard
python_rules
py_package
andpy_wheel
for that.What is the problem:
When I run
bazel test ...
, I get this error:This is the complete output of the command.
I tried reproducing this problem on another computer, but couldn't.
I tried running
bazel clean
and cleaning my poetry caches as well. It did not helpThe text was updated successfully, but these errors were encountered: