-
Notifications
You must be signed in to change notification settings - Fork 14
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
Repoctl down "pkgbase" errors if the pkgbase is not available in pkgname=() #69
Comments
Hi @dr460nf1r3, thanks for reporting this. I seem to have missed it when you initially reported it. I'll see if I can fix this quickly, but if its not trivial it may take a little longer. |
Alright, the API I'm using is the Web RPC, as documented here: https://wiki.archlinux.org/title/Aurweb_RPC_interface However, neither with the For comparison, the tool paru can't find |
So what I could do when not being able to find a package via the Web RPC protocol is just try to download it using the expected URL. But I'm not sure how to correctly sanitize the input package names so that we don't make arbitrary HTTP calls. |
Since this goes beyond what is available from the Web RPC, I'm going to call this an "enhancement" as opposed to a "bug". We can also see that in other tools, the same behavior is present. |
Hey @cassava ! Thanks for taking a look at this issue - would using the git URL not be an option? I'm not really experienced with how the RPC protocol works, so bear with me. Anyways, we do have a workaround and it is not that much of an issue. <3 |
So I got around to looking into this again today, and I found that there are some new RPC endpoints available that I could use to not have to resort to magic. Here is the overview of endpoints: https://aur.archlinux.org/rpc/swagger And the endpoint of interest is |
Seems to work running the latest version 🤔 |
Currently,
repoctl down
does not work withpkgbase
when it is not available in thepkgname
array. An example of this is the yaru pkgbase.Meanwhile, the pkgbase can still be downloaded by its git URL (https://aur.archlinux.org/pkgbase/yaru)
The text was updated successfully, but these errors were encountered: