Skip to content
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

Set credential.provider after successful auto detection probe #517

Merged
merged 1 commit into from
Nov 3, 2021

Conversation

mjcheetham
Copy link
Collaborator

After we've detected the host provider from an auto-detection network probe, set the credential.provider setting so we can avoid the expensive operation in the future. This greatly improves the performance of subsequent credential requests.

If we fail to set this then warn the user and ask them to set the configuration manually.

Fixes #507

Copy link
Collaborator

@dscho dscho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Copy link
Contributor

@ldennington ldennington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

After we've detected the host provider from an auto-detection network
probe, set the `credential.provider` setting so we can avoid the
expensive operation in the future.

If we fail to set this then warn the user and ask them to set the
configuration manually.
@mjcheetham mjcheetham merged commit 75d008d into git-ecosystem:main Nov 3, 2021
@mjcheetham mjcheetham deleted the discovery-setconfig branch November 3, 2021 14:56
This was referenced Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Perform host provider auto-detection only once per host
5 participants