8000 [24.0 backport] Stop slowing bash init by caching plugins path slowly by thaJeztah · Pull Request #4517 · docker/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[24.0 backport] Stop slowing bash init by caching plugins path slowly #4517

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

Merged

Conversation

thaJeztah
Copy link
Member

Fixes issue #3889 by only loading docker plugins path when needed: if it is fast enough than it shouldn't be a problem to do this on demand; OTOH if it is slow then we shouldn't do this during every bash session initialization, regardless if docker completion will be needed or not.

(cherry picked from commit 1da67be)

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Fixes issue docker#3889 by only loading docker plugins path when needed: if it is fast enough than it shouldn't be a problem to do this on demand; OTOH if it is slow then we shouldn't do this during *every* bash session initialization, regardless if docker completion will be needed or not.

Signed-off-by: Oded Arbel <oded@geek.co.il>
(cherry picked from commit 1da67be)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter
Copy link

Codecov Report

Merging #4517 (dc45bcc) into 24.0 (724548b) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             24.0    #4517   +/-   ##
=======================================
  Coverage   59.24%   59.24%           
=======================================
  Files         288      288           
  Lines       24813    24813           
=======================================
  Hits        14701    14701           
  Misses       9230     9230           
  Partials      882      882           

@thaJeztah thaJeztah merged commit 98ffe42 into docker:24.0 Aug 23, 2023
@thaJeztah thaJeztah deleted the 24.0_backport_docker-cli-slows-bash-init branch August 23, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0