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
[Crates] Only use non-yanked crate versions (ready for merge) #9949
[Crates] Only use non-yanked crate versions (ready for merge) #9949
Conversation
|
is there a way to add tests to this, without setting up a special crate? can I test with a mocked response json? (the current json for the |
Use max version instead of newest version? What's the difference? other code in this repo uses |
Same issue exists elsewhere in repo. Apply a fix in the shared base class?
|
Thanks for picking this up.
Yes. I think we should declare a function on
should all get the "latest" version in the same way (and all exclude yanked versions). |
|
What does that mean? What exactly did go wrong? How can I make this unit test run? Please help. |
Thanks for making a start on this. Rather than coach you through this one, I've decided to just take what you've done as a baseline and work from there, retaining the core approach. I've pushed my proposed solution to this branch. There are some changes I've made which are just cleanup, getting the build to pass, adding tests, etc. To summarise the key changes:
Does this implementation seem reasonable to you? Just to clarify a few points where you seemed to be getting stuck:
There are some tests in the core test suite that test some code which outputs something to the console, and we don't suppress console output under test. I guess you're seeing this when running.
Hope some of that helps? |
thanks for making it work <3 I have nothing else to add. your points sound reasonable and are a welcome addition. |
Well, one bike shedding addition: As it seems difficult to decide whether to use |
OK, cool. I'm going to merge what we've got for now. I think this is pretty much in line with what we do for other package registries. |
No description provided.