-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
phive is only scanning first page of GitHub release api #274
Comments
That is apparently correct but not a trivial fix. As github doesn't seem to provide an explicit API to find out how many releases actually exist, this information has to be deducted from the Given the most common use case is likely to request the installation of a somewhat recent version, we probably do not want to always get the full list of all releases from all pages and with that have pointless requests hitting against the github api rate limit. We thus need to implement a sort of streaming, lazy-loading kind of lookup that fetches additional release infos when no match is found and not all releases have been read yet. That's completely different from the current implementation which consumes the downloaded json. Also, the downloader code doesn't yet support looking at the link header. |
Starting I'm still unhappy with the github api ;) |
Hello @theseer, it seems like this problem is back. I've been having problems downloading phpstan 0.12.99, which looks like it just dropped out of the last 30. Looking through the code, I see the |
@Xethron Which version if phive are you using? |
Phive 0.15.0. I just managed to get it to work by changing
to
I assume this bypasses the "alias" lookup, and then uses the GithubAliasResolver instead of the url in repositories.xml |
Can you try using |
Yes, that's a different resolver and I somehow managed to miss the other resolver when adding the |
Just tested it with 0.15.1 and it works! Thank you for your help, and thank you for the extremely fast replies :) PS: Installing phive with |
Fixed that. Thanks. |
I want to install the old version 0.11.16 of
phpstan
, but the installation fails when the release is not in the local cache.phive.xml
:Output:
The release is not listed at https://api.github.com/repos/phpstan/phpstan/releases but on https://api.github.com/repos/phpstan/phpstan/releases?page=2 but only the first page seems to be read.
The text was updated successfully, but these errors were encountered: