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
Failure in 6.1 due to generated http_file
with no urls
set
#1114
Comments
Do you have a reproducible test case for this? I use guava in my own projects, and haven't seen this problem. Can you also please confirm which resolver you're using? Is the default one or the new maven-based one? |
I'm using the default resolver. I debugged this a bit more, and here is my main observation: at this line,
While if I comment out a bunch of our dependencies, the contents are:
I'm not sure how this can happen exactly. I tested the bump (and that linked commit specifically) in another project that we have and I didn't run into that error, so I assume it's some set of dependencies that's triggering the bug. We have thousands of dependencies so I haven't been able to track it down into a reproducible test case yet (and it's possible it'll have internal dependencies, so hard to share). Let me know if this helps a bit more at least! |
I think it was this line resulted in generating a wrong https://repo1.maven.org/maven2/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/ is by design not to have source jar, so ideally |
I was seeing this error when calling The reason this started showing up with 3ec0bbb is because #1148 will stop creating http_file declarations when the resolver was unable to download a file. |
Hey folks! It's my first week using
rules_jvm_external
, so pardon my possible misunderstanding.After upgrading to 6.1 from 6.0, I noticed this failure in our workspace:
When bisecting, the offending commit is the following: 3ec0bbb
When I compare the contents of
.../external/rules_jvm_external_deps/defs.bzl
between the above commit and the parent, the following caught my eye.Before:
After:
The failure is coming from the newly generated
http_file
namedcom_google_guava_listenablefuture_jar_sources_9999_0_empty_to_avoid_conflict_with_guava
which has nourls
set.Am I doing something wrong, or do you have any idea what could the problem be?
The text was updated successfully, but these errors were encountered: