-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: add XBPS support (for Void Linux) #330
Conversation
@tranzystorek-io Sorry, I might be slow to respond now, so the code review might have to take place a bit later. As for the tests, they are mostly smoke tests defined in To run these tests, you can see the definition of test environments here. In short, you have to set up a Void Linux environment in Docker. Finally, thanks for your feedback and I'll make contributing instructions more visible! |
@tranzystorek-io |
Thanks, it's all clear now, I should have a test suite ready in no time! 😄 |
I noticed that |
@tranzystorek-io
Actually, I'm no expert in XBPS, but the question is rather "how you want it to behave", so the decision is still yours, while in general I'll personally favor the second approach. This is why I'm doing this project in Rust rather than sticking with the original For example, if it's just a |
Tried to implement that, but there doesn't seem to be a |
I see what you mean. It shouldn't harm though if you first suppress all stdout, collect output in a Rust Lines 47 to 50 in 10689a4
I admit though the current API might not be the best in terms of UX improvements: for example, it cannot easily show the progress in a series of subcommand launches, and controlling output is also a bit awkward. Thanks again for your advice! In the long run, I'll indeed consider adding some API for this pattern especially if it's general enough in package managers. |
@tranzystorek-io Now that you're definitely more comfortable with PS: Don't mind that |
@rami3l whew, took me a bit but the code and an initial test suite is ready! |
} | ||
|
||
#[test] | ||
fn xbps_q() { |
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.
If you feel like doing it, you can also add tests on the special error handling of -Q
and -Qe
here :)
@tranzystorek-io |
@tranzystorek-io |
@rami3l I think it's good to go 🎉 |
Adds support for the XBPS package manager from Void Linux.
The implementation is complete, but I'm not sure how to add tests, I'd appreciate some hints 😄