Open RandallKent opened 6 years ago
Hi @RandallKent , I modified the code according to your new PR. However, the program still only gets 60 stargazers' info. Could you give some advice? Thanks a lot.
@tianshanghong - Did you build/install after modifying fetch/fecth.go#L62?
Alternatively, assuming you modified $HOME/go/src/github.com/spencerkimball/stargazers/fetch/fetch.go
, you can just run that code by executing:
cd $HOME/go/src/github.com/spencerkimball/stargazers \
&& go run main.go :owner/:repo --token=:access_token [flags]
Even after the modification, it still fetches only 60 stargazers.
Even after the modification, it still fetches only 60 stargazers.
Any luck? I am having the same issue.
@luharias yes.. the issue is that the imports in the library are from the github repo and you are making changes to your local files. So those changes are not being used when running the program. Instead, you should change all the imports in all the files to point to your local files with the modifications (using relative paths).. this fixed the issue for me.
Instead, you should change all the imports in all the files to point to your local files with the modifications (using relative paths).. this fixed the issue for me.
Thank you so much @rishabhpoddar, that helped me resolve it.
I think I'm having this issue also :/
Stargazers was only getting through 60 (2 pages) of our stargazers ☹️
It appears the format of the
Link
response header may have changed to now include arel="prev"
on pages 2+ which broke the RegEx pattern seen @ fetch/fecth.go#L62. Adding a.*
to the RegEx pattern has resolved the issue for me. Will be submitting a PR shortly!Value of
Link
header see with 1st Page:Value of
Link
header see with 2+ Pages: