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: use os.UserHomeDir instead of github.com/docker/docker/pkg/homedir #2101

Merged
merged 1 commit into from
Sep 24, 2019

Conversation

tiborvass
Copy link
Collaborator

@tiborvass tiborvass commented Sep 23, 2019

this change was reverted in #2111

Signed-off-by: Tibor Vass tibor@docker.com

This is to avoid too many dependencies as outlined in #2082

Note that, this PR greatly (aka over-) simplifies the homedir logic: it requires HOME envvar to be set, and no longer looks at the current user's homedir via user.Current().HomeDir, as pkg/homedir did.

…g/homedir

Signed-off-by: Tibor Vass <tibor@docker.com>
@tiborvass
Copy link
Collaborator Author

Ping @jonjohnsonjr @dmcgowan this is the minimalist implementation.

Copy link
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 🤗

Copy link
Contributor

@silvin-lubecki silvin-lubecki left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@tiborvass tiborvass merged commit 0397c2c into docker:master Sep 24, 2019
@GordonTheTurtle GordonTheTurtle added this to the 19.09.0 milestone Sep 24, 2019
@jonjohnsonjr
Copy link
Contributor

@tiborvass is it possible to make this not panic in init? Trying to pull this in and some of my unit tests are upset about it.

@tiborvass
Copy link
Collaborator Author

@jonjohnsonjr done! #2106

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