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

cli/config: replace pkg/homedir dependency with local copy #5187

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

thaJeztah
Copy link
Member

There's some consumers of the config package that don't need any of the other parts of the code, but because of the pkg/homedir were now forced to also depend on docker/docker.

This patch introduces a local copy of the function to prevent this.

- 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)

There's some consumers of the config package that don't need any of the
other parts of the code, but because of the pkg/homedir were now forced
to also depend on docker/docker.

This patch introduces a local copy of the function to prevent this.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Jun 24, 2024
@thaJeztah thaJeztah self-assigned this Jun 24, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Project coverage is 61.74%. Comparing base (12ea47d) to head (9f8bda1).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5187      +/-   ##
==========================================
- Coverage   61.74%   61.74%   -0.01%     
==========================================
  Files         297      297              
  Lines       20781    20787       +6     
==========================================
+ Hits        12832    12835       +3     
- Misses       7035     7037       +2     
- Partials      914      915       +1     

@thaJeztah thaJeztah added this to the 27.0.2 milestone Jun 24, 2024
@thaJeztah thaJeztah merged commit 50acbb0 into docker:master Jun 24, 2024
103 checks passed
@thaJeztah thaJeztah deleted the config_no_pkg_homedir branch June 24, 2024 12:02
@thaJeztah thaJeztah modified the milestones: 27.0.2, 27.0.0 Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/refactor PR's that refactor, or clean-up code status/2-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants