forked from github-release/github-release
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
Breaks if pagination is activated #1
Comments
Thanks, I can reproduce! |
kevinburke
added a commit
to kevinburke/rest
that referenced
this issue
Mar 29, 2020
If you call NewRequest() with a path that matches the set Base, we'll strip it from the path before making the request. The alternative led to URL's like GET https://api.github.com/https://api.github.com/foo/bar which is not very helpful at all. Fixes meterup/github-release#1. Fixes #8.
kevinburke1
added a commit
that referenced
this issue
Mar 29, 2020
Since #1 there is at least some subset of dependencies that will not work with all clients; since this is a binary, it's not difficult to vendor the correct set of dependencies, so do so.
This should be fixed now, please let me know if you're still running into issues. |
regisb
added a commit
to overhangio/tutor
that referenced
this issue
Feb 4, 2021
See failing job: https://travis-ci.org/github/overhangio/tutor/jobs/757515583 This is almost certainly due to a change in the github API response: meterup/github-release#1 See discussion: https://discuss.overhang.io/t/no-packages-for-release-11-1-4/1278/2
menski
added a commit
to camunda/zeebe
that referenced
this issue
Jul 20, 2021
menski
added a commit
to camunda/zeebe
that referenced
this issue
Jul 20, 2021
menski
added a commit
to camunda/zeebe
that referenced
this issue
Jul 20, 2021
menski
added a commit
to camunda/zeebe
that referenced
this issue
Jul 20, 2021
menski
added a commit
to camunda/zeebe
that referenced
this issue
Jul 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since the Github API returns full paths for the
next
links, these cause invalid urls to be generated if the repository has many items.You can test with:
I have filed a proposed fix for the rest package here:
kevinburke/rest#8
The full link url is returned here:
https://github.com/meterup/github-release/blob/master/github/github.go#L244
Then the REST client is created here:
https://github.com/meterup/github-release/blob/master/github/github.go#L249
But this fails as the client has a base URL and does string concatenation:
https://github.com/kevinburke/rest/blob/master/client.go#L131
It could also be fixed in
github.go
by stripping the link and only passing the path part to the REST client, similar to this:This also works, but is less robust, as Github could send out pagination links to another domain at some point. Not sure it you would rather wait for the rest package to be fixed or include a workaround in your package.
The text was updated successfully, but these errors were encountered: