-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Outdated: handle more maven-metadata.xml files #508
Conversation
Some notes:
|
@cheister shall we switch Outdated.jar to be built from source when it's requested? I'm also thinking of doing the same for the hasher. |
Would that require users to have to add outdated's deps in some way to our own WORKSPACE files? |
Yep. That's already needed today if you want to use |
Thanks for the PR. I'll look into adding better tests for this class |
Do you mind rebasing this PR to get the tests from #511 ? |
Fix bazel-contrib#507 The current `maven-metadata.xml` for `javax.inject:javax.inject` is missing a release or latest tag. <metadata> <groupId>javax.inject</groupId> <artifactId>javax.inject</artifactId> <version>1</version> <versioning> <versions> <version>1</version> </versions> <lastUpdated>20100720032040</lastUpdated> </versioning> </metadata> In this case, grab the first version in the list. With the new code paths, the control flow was getting hard to track, so I switched to returning at decision time.
Done. I also rewrote the (commented-out) test to use classpath resources so it doesn't need Internet. |
…fix bugs And redeploy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
Great! Just checking, what are next steps? Obviously, I won't be able to (squash&)merge the PR. |
Fix #507
The current
maven-metadata.xml
forjavax.inject:javax.inject
is missing arelease or latest tag.
In this case, grab the first version in the list.
With the new code paths, the control flow was getting hard to track,
so I switched to returning at decision time.
This change is