-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat(deps): upgrade to got v10 #5469
Conversation
ok, thanks. I'll take this commit and push it to an internal branch and close this pr. |
@szmarczak How can i extend the default We need this to pass custom properties to our |
@szmarczak How to update the retries function? renovate/lib/datasource/rubygems/retriable.ts Lines 38 to 63 in 0eb616f
renovate/lib/datasource/rubygems/get.ts Lines 44 to 55 in 0eb616f
|
I'd recommend going with the |
Currently I'm not able to rewrite it for you, but will do in an hour. Here's the docs: https://github.com/sindresorhus/got/blob/master/readme.md#retry |
ok, found context and use it, now i only need help at retries. |
@szmarczak can you retarget the pr to |
Did you mean "when you push"? If so, then sure, will do :) Unfortunately I'm not able to convert the retries logic today. Gonna do that tomorrow. I hope you don't mind the waiting. |
yes, i can't retarget pr if my branch is infornt of yours 😅 No hurry, i'm done with most type changes. Now fixing some tests, which i won't finish today. @rarkins How urgnet is this upgrade? I've seen the got issue above. |
@szmarczak Another type difficulty. your types say |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs retargetting to szmarczak/got-10
🙃
ok 9 tests to got. 😴 🙃 https://app.circleci.com/jobs/github/renovatebot/renovate/20165/tests |
If think you're confusing
Neither can I. But will do when I pull your changes and commit mine. |
Not urgent. I think I've managed to fix the problem in got@9 |
@rarkins ok @szmarczak I've pushed my changes to your branch now, so we can see what's missing. |
@szmarczak Can All failing tests use |
Ok, i have to refactor all got wrapper for platforms, as they mix options the old way |
A very small chance. I don't think so. I'll fix the retries today in the afternoon when I'm back from school. |
I can't find the cause for the failing |
I've fixed some inconsistencies. I'll porting them to a seperate pr. |
Fixed all tests 💪 Maybe some coverage is now missing. I'll add tests then. |
Strange, I don't get the lint errors on my local windows 10. 🤔 |
… szmarczak/got-10
… szmarczak/got-10
… szmarczak/got-10
… szmarczak/got-10
… szmarczak/got-10
@szmarczak I think this PR is mostly superseded by #5841. Unfortunately I don't think it's worth rebasing or merging master with these changes. Instead, I think starting from current master would be easier. Sorry about that! If you disagree, leave a comment and I can reopen this issue. |
That's ok, Got 11 is about to be released - compared to Got 10 it is a huge improvement. The API is almost the same. |
json: true
->responseType: 'json'
body: {...}
->json: {...}
got.create({options: {}, handlers: [...]})
->got.extend({handlers: [...]})
baseUrl
->prefixUrl
(breaking change:prefixUrl
will be always prepended, so set it to''
when you pass an absolute URL)Please note that I might have missed something, so please double check.
Note: I don't have the time to correct the typings, but this PR is a good start.
TODO
err.statusCode
tores.response?.statusCode