Got version 11.8.6 throws an error with auth option. #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
yarn.lock
in this package specifies got version 11.8.6, which throws an error when given theauth
option here.The base
heroku-cli
has multiple versions ofgot
so I think this might be a module resolution issue.Full explanation:
As recommended in the docs I'm using the arch package. ref.
This package removes the pin on node, and reinstalls the dependencies, which removes alternate versions of the got dependency. ref
on my machine.
This version of got throws an error if you try and pass
auth
as an option to it, and triggers an error inps:exec
in theupdateClientKey
function here. This callsgot
and throws aTypeError
here.Solutions are either re-introduce the node pinning in the aur package, or update
heroku-cli-exec
to use username/password. Let me see about making a PR for that.internal support ticket: https://help.heroku.com/1417095