Skip to content
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

#28: non-zero exit codes for 'list' and 'search' not found: initial commit #29

Merged
merged 14 commits into from
Oct 31, 2022

Conversation

tonky
Copy link
Contributor

@tonky tonky commented Oct 2, 2022

Hey Hunter, saw you post on mist in /r/linux yesterday!

As a fan of Arch/AUR(though using PopOS atm) i gave it a try and installed nodejs and npm from MPR - good stuff, i'd say!

Then i checked out the mist repo - and bam, it's in rust!

Well, i have some time on my hands and some rust experience, so why not contribute to a good project?!

Here's the initial draft of #28.

Given that there are a lot of hidden assumptions here(expected test structure? exitcode::USAGE for missing 'package base'? rest of subcommands?), i'd like to have some input from you on structure/tests/overall picture.

Feel free to comment on PR, so it can be improved as you see fit.

@hwittenborn
Copy link
Member

Hey, thanks for the kind words :) thanks for the MR too, it's always great to get some contributors in here!

I'm out right now, but I'll be home in a few hours and then I can get this looked over

Copy link
Member

@hwittenborn hwittenborn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey! Sorry for the delay, I crashed right after I got home earlier and just now woke up :p

src/clone.rs Outdated Show resolved Hide resolved
src/clone.rs Outdated Show resolved Hide resolved
@tonky tonky force-pushed the nonzero_exit_code_on_search branch from 651acd6 to 31d2d69 Compare October 3, 2022 10:19
.justfile Outdated Show resolved Hide resolved
.github/workflows/pr.yml Outdated Show resolved Hide resolved
.justfile Outdated Show resolved Hide resolved
.justfile Outdated Show resolved Hide resolved
@hwittenborn
Copy link
Member

Sorry for the delayed comments on all that, looks like I forgot to submit my review and they all remained in a pending state on GitHub :p

@hwittenborn hwittenborn force-pushed the nonzero_exit_code_on_search branch 4 times, most recently from 4c6f419 to 32f2e2f Compare October 10, 2022 21:16
@hwittenborn
Copy link
Member

I just pushed some changes to remove that hanging issue you experienced, I also added a Justfile so the sudo chown and sudo chmod stuff doesn't have to be repeated everywhere. I'm probably gonna want to set up some stuff with bats after this for the end-to-end tests - do you want to tackle those or do you want me to get those done?

Let me know if you're having any trouble with my changes either, I'll be available to help

We no longer maintain 'CachePackage' structs, as these seemed to have slowed down our code a lot.
@hwittenborn
Copy link
Member

Sorry for all these dummy commits, I can't do much local testing atm - I'm just doing one last test and then this should all be ready to merge though - lmk if you have any questions or comments about anything, I'll get it merged after that.

@hwittenborn hwittenborn dismissed their stale review October 31, 2022 13:39

Everything looks fine now

@hwittenborn
Copy link
Member

I'm gonna go ahead and get this merged @tonky, we can get things changed still as you need though, just let me know.

Thanks a ton for the contribution! :)

@hwittenborn hwittenborn merged commit 2457a82 into makedeb:main Oct 31, 2022
hwittenborn pushed a commit that referenced this pull request Oct 31, 2022
@tonky
Copy link
Contributor Author

tonky commented Nov 2, 2022

Thanks for seeing this though, Hunter!
Sorry fo my disappearance, some real life stuff got in the way :)

@hwittenborn
Copy link
Member

Not a problem, there isn't too much of a rush for any of this. Thanks for letting me know though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants