-
Notifications
You must be signed in to change notification settings - Fork 235
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
refactor: simplify repodata_gateway function #1793
Conversation
4af492f
to
bdedea9
Compare
1ee0f1d
to
db009a4
Compare
712af8c
to
5341116
Compare
Progress report is not the best, as messages such as |
Yes but it requires implementing a Reporter. |
@baszalmstra I am not sure what this entails. But it does not sound straightforward 🥲 . Is it worth it? Or should we pull the messaging out of the function and wrap it when / it needed where it is used? |
Yeah that sounds fair! 👍 |
Actually that does not work. Even with the messaging outside of the loop, the iterator is still there waiting... Reporter it is then :-) |
Rattler-build has a custom implementation here: https://github.com/prefix-dev/rattler-build/blob/a28628bc6d29e227dffc1a64c27fa5f0b50f7dc9/src/render/solver.rs#L136 Its not great but might serve as inspiration! |
Hi guys! What is the status of this PR @olivier-lacroix @baszalmstra? |
Most of this PR has become irrelevant, due to numerous changes to Note: not sure a trait is really needed to encapsulate that method? |
a6994a7
to
b232448
Compare
b232448
to
98c1d89
Compare
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 cleanup!
A follow-up on #1767