Skip to content

[v13] Use os.UserHomeDir where possible#25999

Merged
zmb3 merged 2 commits intobranch/v13from
bot/backport-25950-branch/v13
May 11, 2023
Merged

[v13] Use os.UserHomeDir where possible#25999
zmb3 merged 2 commits intobranch/v13from
bot/backport-25950-branch/v13

Conversation

@zmb3
Copy link
Copy Markdown
Collaborator

@zmb3 zmb3 commented May 10, 2023

Backport #25950 and #26010 to branch/v13

@zmb3 zmb3 changed the title [v13] User os.UserHomeDir where possible [v13] Use os.UserHomeDir where possible May 10, 2023
zmb3 added 2 commits May 11, 2023 12:34
In #24156 we removed a lot of unnecessary calls to user.Current,
which can take a long time in Active Directory environments.

This commit removes a few other uses of user.Current where we were
doing a full user lookup only to find the user's home directory,
which is usually more readily available via the environment.
This fixes a bug introduced in #25950
@zmb3 zmb3 force-pushed the bot/backport-25950-branch/v13 branch from a0878af to d4b1c1f Compare May 11, 2023 18:34
@zmb3 zmb3 enabled auto-merge May 11, 2023 18:34
@zmb3 zmb3 added this pull request to the merge queue May 11, 2023
Merged via the queue into branch/v13 with commit ff424f9 May 11, 2023
@zmb3 zmb3 deleted the bot/backport-25950-branch/v13 branch May 11, 2023 19:15
@r0mant r0mant mentioned this pull request Jul 14, 2023
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.

3 participants