-
Notifications
You must be signed in to change notification settings - Fork 11
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
Repository resolution failure will fail build #49
Comments
This isn't an error of "nothing there" - this is an error that you asked for the .pom file and got an html file instead. This is a bit of a tricky one, as this isn't really in the control of the rules. What's happening here is that bintray returns a page at that address, but that page isn't the actual pom file. Given that the rules hand off downloading of all the urls to the bazel repository_ctx object, and it does all the downloading, it's returning a bad file. We have no way to tell it it's wrong, and to re-download from a different URL. From the repository_ctx object's perspective, it successfully downloaded the file. So the question is: why is bintray returning an html file here instead of a 404 error or the real file... I suspect you're actually hitting a login authentication page. That's not something that the bazel maven rules have any control over, or even any way to recover from. I would dig in and see if you're dealing with authentication problems here. When I try to go to that page, I don't get a 404 error, I get a login page for bintray. So this is probably more related to #47. On that note, the problem is broader, as the heir to maven_jar inside bazel (maven_jvm_import_external) also doesn't support this, as there's no particular mechanism available to skylark rules to supply credentials to the repository_ctx.download() method. (cf. bazelbuild/bazel#7443) that said, before I close this, can you verify if you're having an authentication failure? |
Closing, as this isn't really an issue with the current feature set, and is kind of a dupe of #47. |
Given the following:
It will fail with:
That is because
https://bintray.com/bintray/jcenter/io/reactivex/rxjava2/rxjava/2.2.6/rxjava-2.2.6.pom
doesn't exist. Perhaps it should gracefully go to the other repo ?The text was updated successfully, but these errors were encountered: